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

16

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

@@ -61,10 +61,10 @@ "type": "module",

"@types/dedent": "^0.7.2",
"@types/node": "^22.13.4",
"@vitest/coverage-v8": "^3.0.5",
"@vitest/eslint-plugin": "^1.1.31",
"@types/node": "^22.13.5",
"@vitest/coverage-v8": "^3.0.7",
"@vitest/eslint-plugin": "^1.1.33",
"dedent": "^1.5.3",
"eslint": "^9.20.1",
"eslint": "^9.21.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.3",
"prettier": "^3.5.1",
"prettier": "^3.5.2",
"rehype": "^13.0.2",

@@ -75,3 +75,3 @@ "rehype-highlight": "^7.0.2",

"rehype-stringify": "^10.0.1",
"remark-gfm": "^4.0.0",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",

@@ -82,3 +82,3 @@ "remark-rehype": "^11.1.1",

"typescript": "^5.7.3",
"typescript-eslint": "^8.24.1",
"typescript-eslint": "^8.25.0",
"unified": "^11.0.5",

@@ -85,0 +85,0 @@ "unist-util-remove-position": "^5.0.0",

@@ -138,3 +138,3 @@ # rehype-highlight-code-lines

**`rehype-highlight-code-lines`** runs on `<code>` elements with directives like `showLineNumbers` and range number in curly braces like `{2-4, 8}`. That directives can be passed as a word in markdown (` ```ts showLineNumbers {2-4, 8} `) or as a class and attribute in HTML (`<code class="language-ts show-line-numbers" data-highlight-lines="2-4, 8">`).
**`rehype-highlight-code-lines`** runs on `<code>` elements with directives like `showLineNumbers` and range number in curly braces like `{2-4,8}`. That directives can be passed as a word in markdown (` ```ts showLineNumbers {2-4,8} `) or as a class and attribute in HTML (`<code class="language-ts show-line-numbers" data-highlight-lines="2-4,8">`).

@@ -440,2 +440,6 @@ The inverse occurs when the option `showLineNumbers` is true. All `<code>` are processed and numbered. Then (` ```ts noLineNumbers `), or as a class (`<code class="language-ts no-line-numbers">`) can be used to prevent processing.

– Recma plugin to change the `props` parameter into the `_props` in the `function _createMdxContent(props) {/* */}` in the compiled source in order to be able to use `{props.foo}` like expressions. It is useful for the `next-mdx-remote` or `next-mdx-remote-client` users in `nextjs` applications.
- [`recma-mdx-change-imports`](https://www.npmjs.com/package/recma-mdx-change-imports)
– Recma plugin to convert import declarations for assets and media with relative links into variable declarations with string URLs, enabling direct asset URL resolution in compiled MDX.
- [`recma-mdx-import-media`](https://www.npmjs.com/package/recma-mdx-import-media)
– Recma plugin to turn media relative paths into import declarations for both markdown and html syntax in MDX.

@@ -442,0 +446,0 @@ ## License