markdown-it-highlightjs-external
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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", |
4158