File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 ) ) ;
You can’t perform that action at this time.
0 commit comments