@tinacms/mdx 1.3.7 → 1.3.9
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.browser.es.js +8 -9
- package/dist/index.es.js +8 -9
- package/dist/index.js +8 -10
- package/dist/next/tests/FIXME-markdown-shortcodes-with-duplicates/field.d.ts +2 -0
- package/dist/next/tests/FIXME-markdown-shortcodes-with-duplicates/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-html-issues/field.d.ts +2 -0
- package/dist/next/tests/markdown-html-issues/index.test.d.ts +1 -0
- package/package.json +2 -2
- /package/dist/next/tests/{markdown-shortcodes-block-with-html-children-1 → FIXME-markdown-shortcodes-block-with-html-children-1}/field.d.ts +0 -0
- /package/dist/next/tests/{markdown-shortcodes-block-with-html-children-1 → FIXME-markdown-shortcodes-block-with-html-children-1}/index.test.d.ts +0 -0
- /package/dist/next/tests/{markdown-shortcodes-block-with-html-children-2 → FIXME-markdown-shortcodes-block-with-html-children-2}/field.d.ts +0 -0
- /package/dist/next/tests/{markdown-shortcodes-block-with-html-children-2 → FIXME-markdown-shortcodes-block-with-html-children-2}/index.test.d.ts +0 -0
package/dist/index.browser.es.js
CHANGED
|
@@ -41256,11 +41256,6 @@ var fromMarkdown3 = (value, field) => {
|
|
|
41256
41256
|
const patterns = getFieldPatterns(field);
|
|
41257
41257
|
const acornDefault = acorn_exports;
|
|
41258
41258
|
let skipHTML = false;
|
|
41259
|
-
if (field.parser?.type === "markdown") {
|
|
41260
|
-
if (["all", "html"].includes(field.parser?.skipEscaping || "")) {
|
|
41261
|
-
skipHTML = true;
|
|
41262
|
-
}
|
|
41263
|
-
}
|
|
41264
41259
|
const tree = fromMarkdown2(value, {
|
|
41265
41260
|
extensions: [
|
|
41266
41261
|
mdxJsx2({ acorn: acornDefault, patterns, addResult: true, skipHTML })
|
|
@@ -41812,12 +41807,17 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
41812
41807
|
};
|
|
41813
41808
|
const html2 = (content5) => {
|
|
41814
41809
|
return {
|
|
41815
|
-
type: "
|
|
41816
|
-
|
|
41810
|
+
type: "html",
|
|
41811
|
+
value: content5.value,
|
|
41812
|
+
children: [{ type: "text", text: "" }]
|
|
41817
41813
|
};
|
|
41818
41814
|
};
|
|
41819
41815
|
const html_inline = (content5) => {
|
|
41820
|
-
return {
|
|
41816
|
+
return {
|
|
41817
|
+
type: "html_inline",
|
|
41818
|
+
value: content5.value,
|
|
41819
|
+
children: [{ type: "text", text: "" }]
|
|
41820
|
+
};
|
|
41821
41821
|
};
|
|
41822
41822
|
const list3 = (content5) => {
|
|
41823
41823
|
return {
|
|
@@ -42038,7 +42038,6 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
42038
42038
|
accum.push({ type: "a", url: node.url, title: node.title, children });
|
|
42039
42039
|
break;
|
|
42040
42040
|
}
|
|
42041
|
-
case "html":
|
|
42042
42041
|
case "text":
|
|
42043
42042
|
const markProps = {};
|
|
42044
42043
|
marks.forEach((mark) => markProps[mark] = true);
|
package/dist/index.es.js
CHANGED
|
@@ -255125,11 +255125,6 @@ var fromMarkdown3 = (value, field) => {
|
|
|
255125
255125
|
const patterns = getFieldPatterns(field);
|
|
255126
255126
|
const acornDefault = acorn_exports;
|
|
255127
255127
|
let skipHTML = false;
|
|
255128
|
-
if (field.parser?.type === "markdown") {
|
|
255129
|
-
if (["all", "html"].includes(field.parser?.skipEscaping || "")) {
|
|
255130
|
-
skipHTML = true;
|
|
255131
|
-
}
|
|
255132
|
-
}
|
|
255133
255128
|
const tree = fromMarkdown2(value, {
|
|
255134
255129
|
extensions: [
|
|
255135
255130
|
mdxJsx2({ acorn: acornDefault, patterns, addResult: true, skipHTML })
|
|
@@ -255681,12 +255676,17 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
255681
255676
|
};
|
|
255682
255677
|
const html2 = (content5) => {
|
|
255683
255678
|
return {
|
|
255684
|
-
type: "
|
|
255685
|
-
|
|
255679
|
+
type: "html",
|
|
255680
|
+
value: content5.value,
|
|
255681
|
+
children: [{ type: "text", text: "" }]
|
|
255686
255682
|
};
|
|
255687
255683
|
};
|
|
255688
255684
|
const html_inline = (content5) => {
|
|
255689
|
-
return {
|
|
255685
|
+
return {
|
|
255686
|
+
type: "html_inline",
|
|
255687
|
+
value: content5.value,
|
|
255688
|
+
children: [{ type: "text", text: "" }]
|
|
255689
|
+
};
|
|
255690
255690
|
};
|
|
255691
255691
|
const list3 = (content5) => {
|
|
255692
255692
|
return {
|
|
@@ -255907,7 +255907,6 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
255907
255907
|
accum.push({ type: "a", url: node.url, title: node.title, children });
|
|
255908
255908
|
break;
|
|
255909
255909
|
}
|
|
255910
|
-
case "html":
|
|
255911
255910
|
case "text":
|
|
255912
255911
|
const markProps = {};
|
|
255913
255912
|
marks.forEach((mark) => markProps[mark] = true);
|
package/dist/index.js
CHANGED
|
@@ -255138,15 +255138,9 @@ function tokenizer3(input, options) {
|
|
|
255138
255138
|
|
|
255139
255139
|
// src/next/parse/markdown.ts
|
|
255140
255140
|
var fromMarkdown3 = (value, field) => {
|
|
255141
|
-
var _a, _b;
|
|
255142
255141
|
const patterns = getFieldPatterns(field);
|
|
255143
255142
|
const acornDefault = acorn_exports;
|
|
255144
255143
|
let skipHTML = false;
|
|
255145
|
-
if (((_a = field.parser) == null ? void 0 : _a.type) === "markdown") {
|
|
255146
|
-
if (["all", "html"].includes(((_b = field.parser) == null ? void 0 : _b.skipEscaping) || "")) {
|
|
255147
|
-
skipHTML = true;
|
|
255148
|
-
}
|
|
255149
|
-
}
|
|
255150
255144
|
const tree = fromMarkdown2(value, {
|
|
255151
255145
|
extensions: [
|
|
255152
255146
|
mdxJsx2({ acorn: acornDefault, patterns, addResult: true, skipHTML })
|
|
@@ -255703,12 +255697,17 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
255703
255697
|
};
|
|
255704
255698
|
const html2 = (content5) => {
|
|
255705
255699
|
return {
|
|
255706
|
-
type: "
|
|
255707
|
-
|
|
255700
|
+
type: "html",
|
|
255701
|
+
value: content5.value,
|
|
255702
|
+
children: [{ type: "text", text: "" }]
|
|
255708
255703
|
};
|
|
255709
255704
|
};
|
|
255710
255705
|
const html_inline = (content5) => {
|
|
255711
|
-
return {
|
|
255706
|
+
return {
|
|
255707
|
+
type: "html_inline",
|
|
255708
|
+
value: content5.value,
|
|
255709
|
+
children: [{ type: "text", text: "" }]
|
|
255710
|
+
};
|
|
255712
255711
|
};
|
|
255713
255712
|
const list3 = (content5) => {
|
|
255714
255713
|
return {
|
|
@@ -255929,7 +255928,6 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
255929
255928
|
accum.push({ type: "a", url: node.url, title: node.title, children });
|
|
255930
255929
|
break;
|
|
255931
255930
|
}
|
|
255932
|
-
case "html":
|
|
255933
255931
|
case "text":
|
|
255934
255932
|
const markProps = {};
|
|
255935
255933
|
marks.forEach((mark) => markProps[mark] = true);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/mdx",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"typings": "dist/index.d.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"browser": "dist/index.browser.es.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@tinacms/schema-tools": "1.4.
|
|
23
|
+
"@tinacms/schema-tools": "1.4.3",
|
|
24
24
|
"acorn": "8.8.2",
|
|
25
25
|
"ccount": "2.0.1",
|
|
26
26
|
"concat-md": "0.5.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|