This commit is contained in:
root
2026-06-29 23:04:34 +00:00
parent 32f109a443
commit e956ab1990
+25
View File
@@ -451,6 +451,31 @@ import VuePdfEmbed from 'vue-pdf-embed'
import { marked } from 'marked' import { marked } from 'marked'
import katex from 'katex' import katex from 'katex'
import 'katex/dist/katex.min.css' 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 { QuizService, Question, DescriptiveGradingRecord } from '../../bindings/changeme'
import { useQuizStore } from '../store/quiz' import { useQuizStore } from '../store/quiz'
import { useAuthStore } from '../store/auth' import { useAuthStore } from '../store/auth'