File tree Expand file tree Collapse file tree 5 files changed +17
-0
lines changed
Expand file tree Collapse file tree 5 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 105105 "jszip" : " ^3.10.1" ,
106106 "markdown-it" : " ^14.1.0" ,
107107 "markdown-it-anchor" : " ^9.2.0" ,
108+ "markdown-it-footnote" : " ^4.0.0" ,
108109 "markdown-it-github-alerts" : " ^0.3.0" ,
109110 "markdown-it-task-lists" : " ^2.1.1" ,
110111 "mime-types" : " ^2.1.35" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ import box from "dialogs/box";
44import fsOperation from "fileSystem" ;
55import markdownIt from "markdown-it" ;
66import anchor from "markdown-it-anchor" ;
7+ import markdownItFootnote from "markdown-it-footnote" ;
78import MarkdownItGitHubAlerts from "markdown-it-github-alerts" ;
9+ import markdownItTaskLists from "markdown-it-task-lists" ;
810import mimeType from "mime-types" ;
911import mustache from "mustache" ;
1012import path from "path-browserify" ;
@@ -362,6 +364,8 @@ async function run(
362364 . toLowerCase ( )
363365 . replace ( / [ ^ a - z 0 - 9 ] + / g, "-" ) ,
364366 } )
367+ . use ( markdownItTaskLists )
368+ . use ( markdownItFootnote )
365369 . render ( file . session . getValue ( ) ) ;
366370 const doc = mustache . render ( $_markdown , {
367371 html,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import Page from "components/page";
55import Ref from "html-tag-js/ref" ;
66import actionStack from "lib/actionStack" ;
77import markdownIt from "markdown-it" ;
8+ import markdownItFootnote from "markdown-it-footnote" ;
89import markdownItTaskLists from "markdown-it-task-lists" ;
910import helpers from "utils/helpers" ;
1011
@@ -148,6 +149,7 @@ export default async function Changelog() {
148149 . replace ( / @ ( \w + ) / g, "[@$1](https://github.com/$1)" ) ;
149150
150151 md . use ( markdownItTaskLists ) ;
152+ md . use ( markdownItFootnote ) ;
151153 const htmlContent = md . render ( processedText ) ;
152154 $content . innerHTML = htmlContent ;
153155 }
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import InstallState from "lib/installState";
1212import settings from "lib/settings" ;
1313import markdownIt from "markdown-it" ;
1414import anchor from "markdown-it-anchor" ;
15+ import markdownItFootnote from "markdown-it-footnote" ;
1516import MarkdownItGitHubAlerts from "markdown-it-github-alerts" ;
1617import markdownItTaskLists from "markdown-it-task-lists" ;
1718import Url from "utils/Url" ;
@@ -321,6 +322,7 @@ export default async function PluginInclude(
321322 . replace ( / [ ^ a - z 0 - 9 ] + / g, "-" ) ,
322323 } )
323324 . use ( markdownItTaskLists )
325+ . use ( markdownItFootnote )
324326 . render ( plugin . description ) ,
325327 changelogs : plugin . changelogs
326328 ? markdownIt ( { html : true , xhtmlOut : true } )
@@ -333,6 +335,7 @@ export default async function PluginInclude(
333335 . replace ( / [ ^ a - z 0 - 9 ] + / g, "-" ) ,
334336 } )
335337 . use ( markdownItTaskLists )
338+ . use ( markdownItFootnote )
336339 . render ( plugin . changelogs )
337340 : null ,
338341 purchased,
You can’t perform that action at this time.
0 commit comments