rehype-highlight-code-lines 1.0.3 → 1.0.4

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 +9 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -201,6 +201,15 @@ use(rehypeHighlightLines, {
201
201
  });
202
202
  ```
203
203
 
204
+ **An example screen snapshot from a working app:**
205
+
206
+ ![markdown code block input](https://github.com/rehypejs/rehype-highlight/assets/30029208/d597f4e5-d7ca-4a84-b843-950094e4a49b)
207
+ ![markdown code block result](https://github.com/rehypejs/rehype-highlight/assets/30029208/908449d6-8028-4ecd-8536-3e747c725da7)
208
+
209
+ **Here you can find some demo applications below which the `rehype-highlight` and `rehype-highlight-code-lines` are used together:**
210
+ + [demo blog application](https://next-mdx-remote-client-in-app-router.vercel.app/) using `next-mdx-remote-client` within `Next.js app router`
211
+ + [demo blog application](https://next-mdx-remote-client-in-pages-router.vercel.app/) using `next-mdx-remote-client` within `Next.js pages router`
212
+
204
213
  ## Copying Code Block's Content Issue
205
214
 
206
215
  When the line container is "div" block element, the end of line character (eol) at the end of line causes unwanted extra blank line. In order to fix the issue, I've **removed the eol when it is "div", but kept the eol when it is "span"**.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rehype-highlight-code-lines",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
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",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/dedent": "^0.7.2",
50
- "@types/node": "^20.14.6",
50
+ "@types/node": "^20.14.8",
51
51
  "@typescript-eslint/eslint-plugin": "^7.13.1",
52
52
  "@typescript-eslint/parser": "^7.13.1",
53
53
  "@vitest/coverage-v8": "^1.6.0",
@@ -63,14 +63,14 @@
63
63
  "remark-rehype": "^11.1.0",
64
64
  "rimraf": "^5.0.7",
65
65
  "type-coverage": "^2.29.0",
66
- "typescript": "^5.5.2",
67
- "unified": "^11.0.5",
66
+ "typescript": "^5.5",
68
67
  "vfile": "^6.0.1",
69
68
  "vitest": "^1.4.0"
70
69
  },
71
70
  "dependencies": {
72
71
  "@types/hast": "^3.0.4",
73
72
  "parse-numeric-range": "^1.3.0",
73
+ "unified": "^11.0.5",
74
74
  "unist-util-visit": "^5.0.0"
75
75
  },
76
76
  "typeCoverage": {