Socket
Socket
Sign inDemoInstall

lowlight

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lowlight - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

7

lib/core.js

@@ -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} */

2

package.json
{
"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",

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