@tinacms/mdx 0.61.0 → 0.61.1
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 +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -244674,8 +244674,10 @@ var markdownToAst = (value, field) => {
|
|
|
244674
244674
|
throw new Error("Global templates are not supported");
|
|
244675
244675
|
}
|
|
244676
244676
|
if (template.match) {
|
|
244677
|
-
|
|
244678
|
-
|
|
244677
|
+
if (preprocessedString) {
|
|
244678
|
+
preprocessedString = replaceAll(preprocessedString, template.match.start, `<${template.name}>\``);
|
|
244679
|
+
preprocessedString = replaceAll(preprocessedString, template.match.end, `\`</${template.name}>`);
|
|
244680
|
+
}
|
|
244679
244681
|
}
|
|
244680
244682
|
});
|
|
244681
244683
|
try {
|