From ae9e2d1a21f15a3e02bc0a669f686dfb418d75ea Mon Sep 17 00:00:00 2001 From: Maarten Segers Date: Wed, 4 Jan 2023 12:02:15 +0100 Subject: [PATCH 1/4] Use the 'highlight.js' package --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cbe6983..be9adfd 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ }, "dependencies": { "github-markdown-css": "^2.8.0", - "highlightjs": "^9.10.0", + "highlight.js": "^11.7.0", "node-emoji": "^1.8.1" } } From 44009ab51b411d60e98c8f4945695d8e34dc0292 Mon Sep 17 00:00:00 2001 From: Maarten Segers Date: Wed, 4 Jan 2023 12:04:02 +0100 Subject: [PATCH 2/4] Update highlight.js --- src/rules/highlight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules/highlight.js b/src/rules/highlight.js index 4e2f472..7188ff3 100644 --- a/src/rules/highlight.js +++ b/src/rules/highlight.js @@ -1,5 +1,5 @@ import { Utils } from './../utils' -import highlightjs from 'highlightjs' +import highlightjs from 'highlight.js' const CODE_BLOCK_REGEX = /([^```]*)``` ?(\w*)([\s\S]+?)```([^```]*)/g From 20a133faa2647aa79603c6444dfc72b9edacd8a7 Mon Sep 17 00:00:00 2001 From: Maarten Segers Date: Wed, 4 Jan 2023 12:05:57 +0100 Subject: [PATCH 3/4] Update webpack.config.base.js --- build/webpack.config.base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/webpack.config.base.js b/build/webpack.config.base.js index 39a4003..1a538eb 100644 --- a/build/webpack.config.base.js +++ b/build/webpack.config.base.js @@ -51,6 +51,6 @@ module.exports = { } ] }, - externals: /highlightjs|node-emoji/, + externals: /highlight.js|node-emoji/, plugins } From 577a9ac4f0b93816aaf2d78172df8f8ddbacd556 Mon Sep 17 00:00:00 2001 From: Maarten Segers Date: Wed, 4 Jan 2023 12:06:45 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 357c293..6c5da26 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Vue.use(VueSimpleMarkdown) | source | String | '' | The markdown source code | | emoji | Boolean | `true` | `:)` => `😃` | | heading | Boolean | `true` | `#` => `

`, `##` => `

`... | -| highlight | Boolean | `true` | SyntaxHighlighter ([highlightjs](https://www.npmjs.com/package/highlightjs)) | +| highlight | Boolean | `true` | SyntaxHighlighter ([highlight.js](https://www.npmjs.com/package/highlight.js)) | | horizontal-line | Boolean | `true` | `***` or `___` or `---` => `
` | | image | Boolean | `true` | `![imageName.png](imageLocation)` | | inline-code | Boolean | `true` | \`someCode\` => `someCode` |