rehype-highlight-code-lines
Advanced tools
Comparing version
@@ -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; |
{ | ||
"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
42674
-0.67%461
-0.86%