Socket
Socket
Sign inDemoInstall

markdown-it-highlightjs

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-highlightjs - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

7

CHANGELOG.md

@@ -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

2

core.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc