Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-hljs-with-line-number

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-hljs-with-line-number - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

4

index.js

@@ -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.

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