File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 39
39
"dotenv" : " ^16.3.1" ,
40
40
"esbuild-plugin-env" : " ^1.0.8" ,
41
41
"marked" : " ^11.0.0" ,
42
+ "marked-footnote" : " ^1.2.4" ,
42
43
"wrangler" : " ^3.83.0"
43
44
},
44
45
"devDependencies" : {
Original file line number Diff line number Diff line change 1
1
import { marked } from "marked" ;
2
+ import markedFootnote from "marked-footnote" ;
2
3
import { organizationImageCache } from "../fetch-github/fetch-issues-full" ;
3
4
import { GitHubIssue } from "../github-types" ;
4
5
import { taskManager } from "../home" ;
@@ -170,6 +171,9 @@ export async function viewIssueDetails(full: GitHubIssue) {
170
171
bottomBar . prepend ( clonedLabels ) ;
171
172
}
172
173
174
+ // Use footnote extension for `marked`
175
+ marked . use ( markedFootnote ( ) ) ;
176
+
173
177
// Set the issue body content using `marked`
174
178
modalBodyInner . innerHTML = marked ( full . body ) as string ;
175
179
You can’t perform that action at this time.
0 commit comments