From e956ab1990f63684e6a817dbc192010f5cfab858 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 29 Jun 2026 23:04:34 +0000 Subject: [PATCH] stripe --- frontend/src/views/QuizView.vue | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/frontend/src/views/QuizView.vue b/frontend/src/views/QuizView.vue index 79681c6..3af862b 100644 --- a/frontend/src/views/QuizView.vue +++ b/frontend/src/views/QuizView.vue @@ -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'