@docusaurus/mdx-loader 3.7.0-canary-6286 → 3.7.0-canary-6291
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeCompatPlugin.d.ts","sourceRoot":"","sources":["../../../src/remark/mdx1Compat/codeCompatPlugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAc,MAAM,EAAC,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAShC,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"codeCompatPlugin.d.ts","sourceRoot":"","sources":["../../../src/remark/mdx1Compat/codeCompatPlugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAc,MAAM,EAAC,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAShC,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,EAAE,IAAI,CAgBnC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -19,6 +19,7 @@ const plugin = function plugin() {
|
|
|
19
19
|
node.data = node.data || {};
|
|
20
20
|
node.data.hProperties = node.data.hProperties || {};
|
|
21
21
|
node.data.hProperties.metastring = node.meta;
|
|
22
|
+
// TODO Docusaurus v4: remove special case
|
|
22
23
|
// Retrocompatible support for live codeblock metastring
|
|
23
24
|
// Not really the appropriate place to handle that :s
|
|
24
25
|
node.data.hProperties.live = node.meta?.split(' ').includes('live');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeCompatPlugin.js","sourceRoot":"","sources":["../../../src/remark/mdx1Compat/codeCompatPlugin.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,+HAA+H;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AAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;YAE5B,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC;YACpD,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC;YAE7C,0CAA0C;YAC1C,wDAAwD;YACxD,qDAAqD;YACrD,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/mdx-loader",
|
|
3
|
-
"version": "3.7.0-canary-
|
|
3
|
+
"version": "3.7.0-canary-6291",
|
|
4
4
|
"description": "Docusaurus Loader for MDX",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/logger": "3.7.0-canary-
|
|
22
|
-
"@docusaurus/utils": "3.7.0-canary-
|
|
23
|
-
"@docusaurus/utils-validation": "3.7.0-canary-
|
|
21
|
+
"@docusaurus/logger": "3.7.0-canary-6291",
|
|
22
|
+
"@docusaurus/utils": "3.7.0-canary-6291",
|
|
23
|
+
"@docusaurus/utils-validation": "3.7.0-canary-6291",
|
|
24
24
|
"@mdx-js/mdx": "^3.0.0",
|
|
25
25
|
"@slorber/remark-comment": "^1.0.0",
|
|
26
26
|
"escape-html": "^1.0.3",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"webpack": "^5.88.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@docusaurus/types": "3.7.0-canary-
|
|
47
|
+
"@docusaurus/types": "3.7.0-canary-6291",
|
|
48
48
|
"@types/escape-html": "^1.0.2",
|
|
49
49
|
"@types/mdast": "^4.0.2",
|
|
50
50
|
"@types/stringify-object": "^3.3.1",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=18.0"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "042d358aa2e356fa3e5abb8e553eb30a9655c5c1"
|
|
68
68
|
}
|
|
@@ -25,6 +25,7 @@ const plugin: Plugin<unknown[], Root> = function plugin(): Transformer<Root> {
|
|
|
25
25
|
node.data.hProperties = node.data.hProperties || {};
|
|
26
26
|
node.data.hProperties.metastring = node.meta;
|
|
27
27
|
|
|
28
|
+
// TODO Docusaurus v4: remove special case
|
|
28
29
|
// Retrocompatible support for live codeblock metastring
|
|
29
30
|
// Not really the appropriate place to handle that :s
|
|
30
31
|
node.data.hProperties.live = node.meta?.split(' ').includes('live');
|