Skip to content

Commit 05ecf53

Browse files
authored
Update live-view.js
1 parent 898694c commit 05ecf53

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

live-view/live-view.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,11 @@ async function renderLiveViewMarkdown(file) {
11921192
typeof DOMPurify === 'undefined') {
11931193

11941194
// load markdown compiler
1195-
await loadScript('live-view/extensions/marked.min.js');
1195+
await loadScript('live-view/extensions/markdown/marked.min.js');
1196+
1197+
// apply markdown compiler extensions
1198+
marked.use(markedAlert());
1199+
marked.use(markedFootnote());
11961200

11971201
}
11981202

@@ -1253,7 +1257,7 @@ async function renderLiveViewMarkdown(file) {
12531257

12541258
fetchPromises.push((async (i) => {
12551259

1256-
await loadStyleSheet(window.location.origin + '/live-view/extensions/markdown-dark.css', frameDoc.head)
1260+
await loadStyleSheet(window.location.origin + '/live-view/extensions/markdown/markdown-dark.css', frameDoc.head)
12571261

12581262
fetchPromises.splice(i, 1);
12591263
})(fetchPromises.length));

0 commit comments

Comments
 (0)