rehype-highlight-code-lines 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -135,7 +135,7 @@ Without `rehype-highlight-code-lines`, the lines of code wouldn't be in a `span`
135
135
 
136
136
  ## Usage in HTML attributes
137
137
 
138
- **`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">`).
138
+ **`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">`).
139
139
 
140
140
  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.
141
141
 
@@ -436,6 +436,10 @@ I like to contribute the Unified / Remark / MDX ecosystem, so I recommend you to
436
436
  – Recma plugin to set the default value `() => null` for the Components in MDX in case of missing or not provided so as not to throw an error
437
437
  - [`recma-mdx-change-props`](https://www.npmjs.com/package/recma-mdx-change-props)
438
438
  – 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.
439
+ - [`recma-mdx-change-imports`](https://www.npmjs.com/package/recma-mdx-change-imports)
440
+ – 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.
441
+ - [`recma-mdx-import-media`](https://www.npmjs.com/package/recma-mdx-import-media)
442
+ – Recma plugin to turn media relative paths into import declarations for both markdown and html syntax in MDX.
439
443
 
440
444
  ## License
441
445
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rehype-highlight-code-lines",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Rehype plugin to add line numbers to code blocks and allow highlighting of desired code lines",
5
5
  "type": "module",
6
6
  "exports": "./dist/esm/index.js",
@@ -58,26 +58,26 @@
58
58
  "devDependencies": {
59
59
  "@eslint/js": "^9.20.0",
60
60
  "@types/dedent": "^0.7.2",
61
- "@types/node": "^22.13.4",
62
- "@vitest/coverage-v8": "^3.0.5",
63
- "@vitest/eslint-plugin": "^1.1.31",
61
+ "@types/node": "^22.13.5",
62
+ "@vitest/coverage-v8": "^3.0.7",
63
+ "@vitest/eslint-plugin": "^1.1.33",
64
64
  "dedent": "^1.5.3",
65
- "eslint": "^9.20.1",
65
+ "eslint": "^9.21.0",
66
66
  "eslint-config-prettier": "^10.0.1",
67
67
  "eslint-plugin-prettier": "^5.2.3",
68
- "prettier": "^3.5.1",
68
+ "prettier": "^3.5.2",
69
69
  "rehype": "^13.0.2",
70
70
  "rehype-highlight": "^7.0.2",
71
71
  "rehype-parse": "^9.0.1",
72
72
  "rehype-raw": "^7.0.0",
73
73
  "rehype-stringify": "^10.0.1",
74
- "remark-gfm": "^4.0.0",
74
+ "remark-gfm": "^4.0.1",
75
75
  "remark-parse": "^11.0.0",
76
76
  "remark-rehype": "^11.1.1",
77
77
  "rimraf": "^5.0.10",
78
78
  "type-coverage": "^2.29.7",
79
79
  "typescript": "^5.7.3",
80
- "typescript-eslint": "^8.24.1",
80
+ "typescript-eslint": "^8.25.0",
81
81
  "unified": "^11.0.5",
82
82
  "unist-util-remove-position": "^5.0.0",
83
83
  "vfile": "^6.0.3",