diff --git a/client/src/components/Markdown/Markdown.vue b/client/src/components/Markdown/Markdown.vue index f3182bcaa5fb..49329795daa2 100644 --- a/client/src/components/Markdown/Markdown.vue +++ b/client/src/components/Markdown/Markdown.vue @@ -156,7 +156,7 @@ onMounted(() => {
- + { const sectionMatch = line.match(/^```(.*)$/); if (sectionMatch) { parseResult(result, currentName, currentContent); - currentName = sectionMatch[1] || "default"; + currentName = sectionMatch[1] || "markdown"; currentContent = []; } else { currentContent.push(line); @@ -53,7 +53,7 @@ export function splitMarkdown(markdown: string, preserveWhitespace = false) { const defaultContent = rawContent.trim(); if (preserveWhitespace || defaultContent) { sections.push({ - name: "default", + name: "markdown", content: preserveWhitespace ? rawContent : defaultContent, }); } @@ -76,7 +76,7 @@ export function splitMarkdown(markdown: string, preserveWhitespace = false) { } } else { sections.push({ - name: "default", + name: "markdown", content: digest, }); break;