Skip to content

Commit

Permalink
update markdown-it to v14
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeseda committed Feb 20, 2024
1 parent 5b761ac commit 0512a1f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFileSync, writeFileSync } from 'fs'
import razorSyntax from 'highlightjs-cshtml-razor'
import leanSyntax from 'highlightjs-lean'
import markdownItAttrs from 'markdown-it-attrs'
import markdownItEmoji from 'markdown-it-emoji'
import { full as emoji } from 'markdown-it-emoji'
import { Arcdown } from 'arcdown'

// read the sample markdown file
Expand Down Expand Up @@ -41,7 +41,7 @@ const options = {
// verbose definition -- key name doesn't matter
mdMoji: [
// the plugin function:
markdownItEmoji,
emoji,
// with options:
{
shortcuts: { laughing: ':D' },
Expand Down
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"arcdown": "file:../",
"highlightjs-cshtml-razor": "^2.1.1",
"highlightjs-lean": "^1.1.0",
"markdown-it-attrs": "^4.1.3",
"markdown-it-emoji": "^2.0.2"
"markdown-it-attrs": "^4.1.6",
"markdown-it-emoji": "^3.0.0"
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
"dependencies": {
"@architect/syntaxes": "git+https://github.com/architect/syntaxes.git#v1.2.1",
"gray-matter": "^4.0.3",
"highlight.js": "^11.8.0",
"markdown-it": "^13.0.1",
"highlight.js": "^11.9.0",
"markdown-it": "^14.0.0",
"markdown-it-anchor": "^8.6.7",
"markdown-it-external-anchor": "^1.0.0",
"markdown-it-toc-done-right": "^4.2.0"
},
"devDependencies": {
"@architect/eslint-config": "^2.1.2",
"eslint": "^8.49.0",
"tap-arc": "^1.0.0",
"tape": "^5.6.6"
"eslint": "^8.56.0",
"tap-arc": "^1.2.2",
"tape": "^5.7.5"
},
"eslintConfig": {
"parserOptions": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/hljs-highlighter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import hljs from 'highlight.js/lib/core'
import { escapeHtml } from 'markdown-it/lib/common/utils.js'
import { escapeHtml } from 'markdown-it/lib/common/utils.mjs'
import arcSyntax from '@architect/syntaxes/arc-hljs-grammar.js'

const KNOWN_LANGUAGES = {
Expand Down

0 comments on commit 0512a1f

Please sign in to comment.