@dogsbay/markdown-it-mdx-jsx 0.2.0-beta.10 → 0.2.0-beta.102
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/dist/index.js +7 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -480,6 +480,13 @@ function createImportStripRule() {
|
|
|
480
480
|
state.line = startLine + 1;
|
|
481
481
|
return true;
|
|
482
482
|
}
|
|
483
|
+
// Side-effect import (no binding): `import "./styles.module.css";`
|
|
484
|
+
if (text.match(/^import\s+["'][^"']*["']\s*;?\s*$/)) {
|
|
485
|
+
if (silent)
|
|
486
|
+
return true;
|
|
487
|
+
state.line = startLine + 1;
|
|
488
|
+
return true;
|
|
489
|
+
}
|
|
483
490
|
if (text.match(/^import\s*\{/)) {
|
|
484
491
|
if (silent)
|
|
485
492
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dogsbay/markdown-it-mdx-jsx",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.102",
|
|
4
4
|
"description": "markdown-it plugin that tokenizes JSX-style component tags inside Markdown — used by @dogsbay/format-starlight",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"README.md"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"markdown-it": "^14.
|
|
14
|
+
"markdown-it": "^14.3.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@types/node": "^22.0.0",
|
|
18
17
|
"@types/markdown-it": "^14.1.2",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"@types/node": "^22.20.1",
|
|
19
|
+
"typescript": "^5.9.3",
|
|
20
|
+
"vitest": "^4.1.10"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"repository": {
|