Skip to content

Commit f21c872

Browse files
authored
fix(stage-ui): remove redundant Katex output html (#765)
1 parent 1cdf461 commit f21c872

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/i18n/src/locales/zh-Hant/docs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import versions from './versions.yaml'
33

44
export default {
55
theme,
6-
versions,
6+
versions,
77
}

packages/stage-ui/src/composables/markdown.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function createProcessor(langs: BundledLanguage[]): Promise<MarkdownProces
4242
.use(RemarkParse)
4343
.use(remarkMath)
4444
.use(RemarkRehype)
45-
.use(rehypeKatex)
45+
.use(rehypeKatex, { output: 'mathml' })
4646
.use(rehypeShiki, options)
4747
.use(RehypeStringify)
4848
}
@@ -64,7 +64,7 @@ export function useMarkdown() {
6464
.use(RemarkParse)
6565
.use(remarkMath)
6666
.use(RemarkRehype)
67-
.use(rehypeKatex)
67+
.use(rehypeKatex, { output: 'mathml' })
6868
.use(RehypeStringify)
6969

7070
return {

0 commit comments

Comments
 (0)