markdown-it-highlightjs
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -7,2 +7,5 @@ # [Changelog](http://keepachangelog.com/) | ||
## [3.5.0] - 2021-05-16 | ||
* Update to use new highlight.js API after old way got deprecated. ([#20]) | ||
## [3.4.0] - 2020-12-04 | ||
@@ -51,3 +54,4 @@ * Allow injecting the highlight.js instance. ([#15]) | ||
[unreleased]: https://github.com/valeriangalliat/markdown-it-highlightjs/compare/v3.4.0...HEAD | ||
[unreleased]: https://github.com/valeriangalliat/markdown-it-highlightjs/compare/v3.5.0...HEAD | ||
[3.4.0]: https://github.com/valeriangalliat/markdown-it-highlightjs/compare/v3.4.0...v3.5.0 | ||
[3.4.0]: https://github.com/valeriangalliat/markdown-it-highlightjs/compare/v3.3.1...v3.4.0 | ||
@@ -72,1 +76,2 @@ [3.3.1]: https://github.com/valeriangalliat/markdown-it-highlightjs/compare/v3.3.0...v3.3.1 | ||
[#15]: https://github.com/valeriangalliat/markdown-it-highlightjs/pull/15 | ||
[#20]: https://github.com/valeriangalliat/markdown-it-highlightjs/pull/20 |
@@ -15,3 +15,3 @@ function maybe (f) { | ||
const highlight = (hljs, code, lang) => | ||
maybe(() => hljs.highlight(lang || 'plaintext', code, true).value) || '' | ||
maybe(() => hljs.highlight(code, { language: lang || 'plaintext', ignoreIllegals: true }).value) || '' | ||
@@ -18,0 +18,0 @@ // Highlight with given language or automatically. |
{ | ||
"name": "markdown-it-highlightjs", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "Preset to use highlight.js with markdown-it.", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"dependencies": { | ||
"highlight.js": "^10.2.0", | ||
"highlight.js": "^10.7.2", | ||
"lodash.flow": "^3.5.0" | ||
@@ -36,4 +36,4 @@ }, | ||
"markdown-it": "^10.0.0", | ||
"standard": "^14.3.1" | ||
"standard": "^14.3.4" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10509
Updatedhighlight.js@^10.7.2