diff --git a/example/index.js b/example/index.js index 57e905c..2f63805 100644 --- a/example/index.js +++ b/example/index.js @@ -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 @@ -41,7 +41,7 @@ const options = { // verbose definition -- key name doesn't matter mdMoji: [ // the plugin function: - markdownItEmoji, + emoji, // with options: { shortcuts: { laughing: ':D' }, diff --git a/example/package.json b/example/package.json index be71216..54a8efc 100644 --- a/example/package.json +++ b/example/package.json @@ -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" } } diff --git a/package.json b/package.json index 01c331f..9c70de9 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/lib/hljs-highlighter.js b/src/lib/hljs-highlighter.js index 20bdfaa..3c90e86 100644 --- a/src/lib/hljs-highlighter.js +++ b/src/lib/hljs-highlighter.js @@ -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 = {