vue-hljs-with-line-number
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -28,3 +28,3 @@ 'use strict'; | ||
element.innerHTML = hljs.highlightAuto(`<span>${code}</span>`).value | ||
element.innerHTML = hljs.highlightAuto(`${code}`).value | ||
hljs.lineNumbersBlock(target, element, { | ||
@@ -48,3 +48,3 @@ singleLine: code.split('\n').length == 1 | ||
} | ||
element.innerHTML = hljs.highlightAuto(`<span>${code}</span>`).value | ||
element.innerHTML = hljs.highlightAuto(`${code}`).value | ||
hljs.lineNumbersBlock(target, element, { | ||
@@ -51,0 +51,0 @@ singleLine: code.split('\n').length == 1 |
{ | ||
"name": "vue-hljs-with-line-number", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Syntax highlighting with highlight.js for Vue.js 2.x", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/imlinhanchao/vue-hljs-with-line-number", |
@@ -62,2 +62,5 @@ # vue-hljs-with-line-number | ||
## Changelog | ||
v1.0.7 | ||
- Fix the problem that code block has `<span></span>`. | ||
v1.0.6 | ||
@@ -64,0 +67,0 @@ - Fix the problem that code block and line number alternately appear. |
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
13693
86