rehype-pre-language 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.
- package/LICENSE +1 -1
- package/README.md +10 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -14
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -150,6 +150,10 @@ I like to contribute the Unified / Remark / MDX ecosystem, so I recommend you to
|
|
|
150
150
|
– Rehype plugin to add language information as a property to `pre` element
|
|
151
151
|
- [`rehype-highlight-code-lines`](https://www.npmjs.com/package/rehype-highlight-code-lines)
|
|
152
152
|
– Rehype plugin to add line numbers to code blocks and allow highlighting of desired code lines
|
|
153
|
+
- [`rehype-code-meta`](https://www.npmjs.com/package/rehype-code-meta)
|
|
154
|
+
– Rehype plugin to copy `code.data.meta` to `code.properties.metastring`
|
|
155
|
+
- [`rehype-image-toolkit`](https://www.npmjs.com/package/rehype-image-toolkit)
|
|
156
|
+
– Rehype plugin to enhance Markdown image syntax `![]()` and Markdown/MDX media elements (`<img>`, `<audio>`, `<video>`) by auto-linking bracketed or parenthesized image URLs, wrapping them in `<figure>` with optional captions, unwrapping images/videos/audio from paragraph, parsing directives in title for styling and adding attributes, and dynamically converting images into `<video>` or `<audio>` elements based on file extension.
|
|
153
157
|
|
|
154
158
|
### My Recma Plugins
|
|
155
159
|
|
|
@@ -161,6 +165,12 @@ I like to contribute the Unified / Remark / MDX ecosystem, so I recommend you to
|
|
|
161
165
|
– 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.
|
|
162
166
|
- [`recma-mdx-import-media`](https://www.npmjs.com/package/recma-mdx-import-media)
|
|
163
167
|
– Recma plugin to turn media relative paths into import declarations for both markdown and html syntax in MDX.
|
|
168
|
+
- [`recma-mdx-import-react`](https://www.npmjs.com/package/recma-mdx-import-react)
|
|
169
|
+
– Recma plugin to ensure getting `React` instance from the arguments and to make the runtime props `{React, jsx, jsxs, jsxDev, Fragment}` is available in the dynamically imported components in the compiled source of MDX.
|
|
170
|
+
- [`recma-mdx-html-override`](https://www.npmjs.com/package/recma-mdx-html-override)
|
|
171
|
+
– Recma plugin to allow selected raw HTML elements to be overridden via MDX components.
|
|
172
|
+
- [`recma-mdx-interpolate`](https://www.npmjs.com/package/recma-mdx-interpolate)
|
|
173
|
+
– 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.
|
|
164
174
|
|
|
165
175
|
## License
|
|
166
176
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../../src/index.ts"],"version":"5.
|
|
1
|
+
{"root":["../../src/index.ts"],"version":"5.8.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rehype-pre-language",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Rehype plugin to add language information as a property to pre element",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/esm/index.js",
|
|
@@ -47,30 +47,30 @@
|
|
|
47
47
|
"url": "https://github.com/ipikuka/rehype-pre-language/issues"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@eslint/js": "^9.
|
|
50
|
+
"@eslint/js": "^9.26.0",
|
|
51
51
|
"@types/dedent": "^0.7.2",
|
|
52
|
-
"@types/node": "^22.
|
|
53
|
-
"@vitest/coverage-v8": "^3.
|
|
54
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
55
|
-
"dedent": "^1.
|
|
56
|
-
"eslint": "^9.
|
|
57
|
-
"eslint-config-prettier": "^10.
|
|
58
|
-
"eslint-plugin-prettier": "^5.
|
|
59
|
-
"prettier": "^3.5.
|
|
52
|
+
"@types/node": "^22.15.14",
|
|
53
|
+
"@vitest/coverage-v8": "^3.1.3",
|
|
54
|
+
"@vitest/eslint-plugin": "^1.1.44",
|
|
55
|
+
"dedent": "^1.6.0",
|
|
56
|
+
"eslint": "^9.26.0",
|
|
57
|
+
"eslint-config-prettier": "^10.1.2",
|
|
58
|
+
"eslint-plugin-prettier": "^5.4.0",
|
|
59
|
+
"prettier": "^3.5.3",
|
|
60
60
|
"rehype-highlight": "^7.0.2",
|
|
61
61
|
"rehype-parse": "^9.0.1",
|
|
62
62
|
"rehype-stringify": "^10.0.1",
|
|
63
63
|
"remark-flexible-code-titles": "^1.2.0",
|
|
64
64
|
"remark-gfm": "^4.0.1",
|
|
65
65
|
"remark-parse": "^11.0.0",
|
|
66
|
-
"remark-rehype": "^11.1.
|
|
66
|
+
"remark-rehype": "^11.1.2",
|
|
67
67
|
"rimraf": "^5.0.10",
|
|
68
68
|
"type-coverage": "^2.29.7",
|
|
69
|
-
"typescript": "^5.
|
|
70
|
-
"typescript-eslint": "^8.
|
|
69
|
+
"typescript": "^5.8.3",
|
|
70
|
+
"typescript-eslint": "^8.32.0",
|
|
71
71
|
"unified": "^11.0.5",
|
|
72
72
|
"vfile": "^6.0.3",
|
|
73
|
-
"vitest": "^3.
|
|
73
|
+
"vitest": "^3.1.3"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@types/hast": "^3.0.4",
|