New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rehype-highlight-code-lines

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-highlight-code-lines - npm Package Compare versions

Comparing version

to
1.0.3

2

dist/esm/index.js

@@ -191,3 +191,2 @@ import { visit, CONTINUE } from "unist-util-visit";

}
console.log({ startingNumber });
// find number range string within curly braces and parse it

@@ -197,3 +196,2 @@ const REGEX2 = /{(?<lines>[\d\s,-]+)}/g;

const linesToBeHighlighted = strLineNumbers ? rangeParser(strLineNumbers) : [];
console.log({ linesToBeHighlighted });
if (!showLineNumbers && linesToBeHighlighted.length === 0)

@@ -200,0 +198,0 @@ return;

2

package.json
{
"name": "rehype-highlight-code-lines",
"version": "1.0.2",
"version": "1.0.3",
"description": "Rehype plugin to add line numbers to code blocks and allow highlighting of desired code lines",

@@ -5,0 +5,0 @@ "type": "module",

@@ -282,4 +282,2 @@ import type { Plugin } from "unified";

console.log({ startingNumber });
// find number range string within curly braces and parse it

@@ -290,4 +288,2 @@ const REGEX2 = /{(?<lines>[\d\s,-]+)}/g;

console.log({ linesToBeHighlighted });
if (!showLineNumbers && linesToBeHighlighted.length === 0) return;

@@ -294,0 +290,0 @@

Sorry, the diff of this file is not supported yet