Comparing version 2.6.0 to 2.6.1
@@ -267,3 +267,8 @@ /** | ||
openNode(name) { | ||
const className = name.split('.').map((d) => this.options.classPrefix + d) | ||
// First “class” gets the prefix. Rest gets a repeated underscore suffix. | ||
// See: <https://github.com/highlightjs/highlight.js/commit/51806aa> | ||
// See: <https://github.com/wooorm/lowlight/issues/43> | ||
const className = name | ||
.split('.') | ||
.map((d, i) => (i ? d + '_'.repeat(i) : this.options.classPrefix + d)) | ||
const current = this.stack[this.stack.length - 1] | ||
@@ -270,0 +275,0 @@ /** @type {Span} */ |
{ | ||
"name": "lowlight", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "Virtual syntax highlighting for virtual DOMs and non-HTML things", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
52808
793