Skip to content

Commit ae94f14

Browse files
committedNov 5, 2023
1 parent 3c9beef commit ae94f14

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed
 

‎lib/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function parseMarkdown( src, options ) {
3434
}
3535

3636
// Store original text and create an id for linking
37-
var parsedText = marked( item.text );
37+
var parsedText = marked.marked( item.text );
3838
parsedText = parsedText.substring( 3, parsedText.length - 5 );
3939
item.tocText = parsedText.replace( /<[^>]+>/g, "" );
4040
item.tocId = item.tocText

‎package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"grunt-wordpress": "^2.1.3",
2727
"he": "^1.2.0",
2828
"highlight.js": "^10.7.2",
29-
"marked": "^2.0.3",
29+
"marked": "^4.0.0",
3030
"spawnback": "^1.0.1",
3131
"which": "^2.0.2",
3232
"wordpress": "^1.4.1"

0 commit comments

Comments
 (0)