Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

markdown-it-highlightjs-external

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

8

index.js

@@ -7,3 +7,3 @@ /**

* @Last modified by: chenhuachao
* @Last modified time: 2017-12-11T23:34:29+08:00
* @Last modified time: 2017-12-12T21:48:52+08:00
* @License: MIT

@@ -13,3 +13,3 @@ * @Copyright: 2017

var highlightjs = function(md, opts) {
var hljs = function(md, opts) {
opts = opts || { };

@@ -26,4 +26,4 @@ if (opts.highlighted === void (0)) {

md.options.highlight = function(code, lang) {
if (opts.hljs === 'auto') opts.hljs = window.hljs;
var hljs = opts.hljs;
if (opts.hljs === 'auto') hljs = window.hljs;
if (opts.highlighted && lang && hljs) {

@@ -41,2 +41,2 @@ if (hljs.getLanguage(lang)) {

}
export default highlightjs
module.exports = hljs;
{
"name": "markdown-it-highlightjs-external",
"version": "1.0.0",
"version": "1.0.1",
"description": "highlight.js plugin for markdown-it to use external link",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc