Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"jszip": "^3.10.1",
"markdown-it": "^14.1.0",
"markdown-it-anchor": "^9.2.0",
"markdown-it-footnote": "^4.0.0",
"markdown-it-github-alerts": "^0.3.0",
"markdown-it-task-lists": "^2.1.1",
"mime-types": "^2.1.35",
Expand Down
4 changes: 4 additions & 0 deletions src/lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import box from "dialogs/box";
import fsOperation from "fileSystem";
import markdownIt from "markdown-it";
import anchor from "markdown-it-anchor";
import markdownItFootnote from "markdown-it-footnote";
import MarkdownItGitHubAlerts from "markdown-it-github-alerts";
import markdownItTaskLists from "markdown-it-task-lists";
import mimeType from "mime-types";
import mustache from "mustache";
import path from "path-browserify";
Expand Down Expand Up @@ -362,6 +364,8 @@ async function run(
.toLowerCase()
.replace(/[^a-z0-9]+/g, "-"),
})
.use(markdownItTaskLists)
.use(markdownItFootnote)
.render(file.session.getValue());
const doc = mustache.render($_markdown, {
html,
Expand Down
2 changes: 2 additions & 0 deletions src/pages/changelog/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Page from "components/page";
import Ref from "html-tag-js/ref";
import actionStack from "lib/actionStack";
import markdownIt from "markdown-it";
import markdownItFootnote from "markdown-it-footnote";
import markdownItTaskLists from "markdown-it-task-lists";
import helpers from "utils/helpers";

Expand Down Expand Up @@ -148,6 +149,7 @@ export default async function Changelog() {
.replace(/@(\w+)/g, "[@$1](https://github.com/$1)");

md.use(markdownItTaskLists);
md.use(markdownItFootnote);
const htmlContent = md.render(processedText);
$content.innerHTML = htmlContent;
}
Expand Down
3 changes: 3 additions & 0 deletions src/pages/plugin/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import InstallState from "lib/installState";
import settings from "lib/settings";
import markdownIt from "markdown-it";
import anchor from "markdown-it-anchor";
import markdownItFootnote from "markdown-it-footnote";
import MarkdownItGitHubAlerts from "markdown-it-github-alerts";
import markdownItTaskLists from "markdown-it-task-lists";
import Url from "utils/Url";
Expand Down Expand Up @@ -321,6 +322,7 @@ export default async function PluginInclude(
.replace(/[^a-z0-9]+/g, "-"),
})
.use(markdownItTaskLists)
.use(markdownItFootnote)
.render(plugin.description),
changelogs: plugin.changelogs
? markdownIt({ html: true, xhtmlOut: true })
Expand All @@ -333,6 +335,7 @@ export default async function PluginInclude(
.replace(/[^a-z0-9]+/g, "-"),
})
.use(markdownItTaskLists)
.use(markdownItFootnote)
.render(plugin.changelogs)
: null,
purchased,
Expand Down