@tinacms/mdx 0.61.13 → 0.61.14
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 +9 -2
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -41,6 +41,10 @@ var __reExport = (target, module2, desc) => {
|
|
|
41
41
|
var __toModule = (module2) => {
|
|
42
42
|
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
43
43
|
};
|
|
44
|
+
var __publicField = (obj, key, value) => {
|
|
45
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
46
|
+
return value;
|
|
47
|
+
};
|
|
44
48
|
|
|
45
49
|
// ../../../node_modules/.pnpm/is-buffer@2.0.5/node_modules/is-buffer/index.js
|
|
46
50
|
var require_is_buffer = __commonJS({
|
|
@@ -244656,6 +244660,7 @@ var remarkToSlate = (root3, field, imageCallback) => {
|
|
|
244656
244660
|
var RichTextParseError = class extends Error {
|
|
244657
244661
|
constructor(message, position2) {
|
|
244658
244662
|
super(message);
|
|
244663
|
+
__publicField(this, "position");
|
|
244659
244664
|
if (Error.captureStackTrace) {
|
|
244660
244665
|
Error.captureStackTrace(this, RichTextParseError);
|
|
244661
244666
|
}
|
|
@@ -245151,8 +245156,10 @@ var stringifyMDX = (value, field, imageCallback) => {
|
|
|
245151
245156
|
throw new Error("Global templates are not supported");
|
|
245152
245157
|
}
|
|
245153
245158
|
if (template.match) {
|
|
245154
|
-
preprocessedString = replaceAll(preprocessedString, `<${template.name}
|
|
245155
|
-
|
|
245159
|
+
preprocessedString = replaceAll(preprocessedString, `<${template.name}>[
|
|
245160
|
+
\r\\s]*\``, `${template.match.start} `);
|
|
245161
|
+
preprocessedString = replaceAll(preprocessedString, `\`[
|
|
245162
|
+
\r\\s]*</${template.name}>`, ` ${template.match.end}`);
|
|
245156
245163
|
}
|
|
245157
245164
|
});
|
|
245158
245165
|
return preprocessedString;
|