Skip to content

Commit 4adb1e4

Browse files
Change katex and markdownItTexmath module loading to promise
1 parent 062d5e8 commit 4adb1e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/markdownPreview/renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function collectTokens(tokens, callback) {
137137

138138
function createMarkdownIt() {
139139

140-
const { katexModulePromise: katex, mdItTexmathModulePromise: markdownItTexmath } = await getKatexAndTexmathModule();
140+
const { katexModulePromise: katex, mdItTexmathModulePromise: markdownItTexmath } = getKatexAndTexmathModule().then(m => m);
141141

142142
const md = markdownIt({
143143
html: true,

0 commit comments

Comments
 (0)