Skip to content

Commit 40dbdf7

Browse files
authored
Update live-view.js
1 parent 2eb1349 commit 40dbdf7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

live-view/live-view.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,11 +1194,15 @@ async function renderLiveViewMarkdown(file) {
11941194
// load markdown compiler
11951195
await loadScript('live-view/extensions/markdown/marked.min.js');
11961196

1197+
11971198
// apply markdown compiler extensions
1199+
11981200
marked.use(markedAlert());
11991201
marked.use(markedFootnote());
12001202
marked.use(markedBidi());
12011203

1204+
marked.use(markedKatex({ throwOnError: false }));
1205+
12021206
}
12031207

12041208

0 commit comments

Comments
 (0)