stripe
This commit is contained in:
@@ -451,6 +451,31 @@ import VuePdfEmbed from 'vue-pdf-embed'
|
||||
import { marked } from 'marked'
|
||||
import katex from 'katex'
|
||||
import 'katex/dist/katex.min.css'
|
||||
|
||||
marked.use({
|
||||
tokenizer: {
|
||||
del(src) {
|
||||
const doubleMatch = src.match(/^~~(?=\S)([\s\S]*?\S)~~(?![~])/)
|
||||
if (doubleMatch) {
|
||||
return {
|
||||
type: 'del',
|
||||
raw: doubleMatch[0],
|
||||
text: doubleMatch[1],
|
||||
tokens: this.lexer.inlineTokens(doubleMatch[1])
|
||||
}
|
||||
}
|
||||
if (src.startsWith('~')) {
|
||||
return {
|
||||
type: 'text',
|
||||
raw: '~',
|
||||
text: '~'
|
||||
} as any
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
import { QuizService, Question, DescriptiveGradingRecord } from '../../bindings/changeme'
|
||||
import { useQuizStore } from '../store/quiz'
|
||||
import { useAuthStore } from '../store/auth'
|
||||
|
||||
Reference in New Issue
Block a user