Skip to content

Commit

Permalink
Bump marked from 3.0.2 to 4.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode authored and Gerrit0 committed Feb 7, 2022
1 parent 7132fee commit adb53e4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
34 changes: 17 additions & 17 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "typedoc",
"description": "Create api documentation for TypeScript projects.",
"version": "0.21.9",
"version": "0.21.10",
"homepage": "https://typedoc.org",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand All @@ -23,7 +23,7 @@
"glob": "^7.1.7",
"handlebars": "^4.7.7",
"lunr": "^2.3.9",
"marked": "^3.0.2",
"marked": "^4.0.10",
"minimatch": "^3.0.0",
"progress": "^2.0.3",
"shiki": "^0.9.8",
Expand All @@ -35,7 +35,7 @@
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/lunr": "^2.3.4",
"@types/marked": "^3.0.0",
"@types/marked": "^4.0.1",
"@types/minimatch": "3.0.5",
"@types/mocha": "^9.0.0",
"@types/node": "^16.7.4",
Expand Down
8 changes: 4 additions & 4 deletions src/lib/output/plugins/MarkedPlugin.ts
Expand Up @@ -196,7 +196,7 @@ output file :
protected override onBeginRenderer(event: RendererEvent) {
super.onBeginRenderer(event);

Marked.setOptions(this.createMarkedOptions());
Marked.marked.setOptions(this.createMarkedOptions());

delete this.includes;
if (this.includeSource) {
Expand Down Expand Up @@ -235,10 +235,10 @@ output file :
*
* @returns The options object for the markdown parser.
*/
private createMarkedOptions(): Marked.MarkedOptions {
private createMarkedOptions(): Marked.marked.MarkedOptions {
const markedOptions = (this.application.options.getValue(
"markedOptions"
) ?? {}) as Marked.MarkedOptions;
) ?? {}) as Marked.marked.MarkedOptions;

if (
typeof markedOptions === "object" &&
Expand All @@ -264,6 +264,6 @@ output file :
* @param event
*/
onParseMarkdown(event: MarkdownEvent) {
event.parsedText = Marked(event.parsedText);
event.parsedText = Marked.marked(event.parsedText);
}
}

0 comments on commit adb53e4

Please sign in to comment.