rehype-highlight-code-lines 1.2.2 → 1.2.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 (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +9 -0
  3. package/package.json +8 -7
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 ipikuka
3
+ Copyright (c) 2026 ipikuka
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -481,6 +481,15 @@ I like to contribute the Unified / Remark / MDX ecosystem, so I recommend you to
481
481
  - [`recma-mdx-interpolate`](https://www.npmjs.com/package/recma-mdx-interpolate)
482
482
  – Recma plugin to enable interpolation of identifiers wrapped in curly braces within the `alt`, `src`, `href`, and `title` attributes of markdown link and image syntax in MDX.
483
483
 
484
+ ### My Unist Utils and Unified Plugins
485
+
486
+ I also build low-level utilities and plugins for the Unified ecosystem that can be used across Remark, Rehype, Recma, and other unist-based abstract syntax trees (ASTs).
487
+
488
+ - [`unist-util-find-between`](https://www.npmjs.com/package/unist-util-find-between)
489
+ – Unist utility to find the nodes between two nodes.
490
+ - [`unified-log-tree`](https://www.npmjs.com/package/unified-log-tree)
491
+ – Unified plugin to log abstract syntax trees (ASTs) for debugging without mutating.
492
+
484
493
  ## License
485
494
 
486
495
  [MIT License](./LICENSE) © ipikuka
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rehype-highlight-code-lines",
3
- "version": "1.2.2",
3
+ "version": "1.2.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
  "main": "./dist/index.js",
@@ -19,12 +19,12 @@
19
19
  "lint": "eslint .",
20
20
  "test": "vitest run",
21
21
  "test:watch": "vitest",
22
- "test:file1": "vitest test.md.spec.ts",
23
- "test:file2": "vitest test.html.spec.ts",
24
- "test:file3": "vitest test.cases.spec.ts",
25
- "test:file4": "vitest from-rehype-highlight/test.rhcl2.spec.ts",
26
- "test:file5": "vitest test.raw.spec.ts",
27
- "test:file6": "vitest test.debug.spec.ts",
22
+ "test:md": "vitest test.md.spec.ts",
23
+ "test:html": "vitest test.html.spec.ts",
24
+ "test:cases": "vitest test.cases.spec.ts",
25
+ "test:highlight": "vitest from-rehype-highlight/test.rhcl2.spec.ts",
26
+ "test:raw": "vitest test.raw.spec.ts",
27
+ "test:debug": "vitest test.debug.spec.ts",
28
28
  "test-coverage": "vitest run --coverage",
29
29
  "prepack": "npm run build",
30
30
  "prepublishOnly": "npm run format && npm run test-coverage"
@@ -85,6 +85,7 @@
85
85
  "typescript": "^5.9.3",
86
86
  "typescript-eslint": "^8.56.0",
87
87
  "unified": "^11.0.5",
88
+ "unified-log-tree": "^1.1.5",
88
89
  "unist-util-remove-position": "^5.0.0",
89
90
  "vfile": "^6.0.3",
90
91
  "vitest": "^4.0.18"