@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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  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
- preprocessedString = replaceAll(preprocessedString, template.match.start, `<${template.name}>\``);
244678
- preprocessedString = replaceAll(preprocessedString, template.match.end, `\`</${template.name}>`);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/mdx",
3
- "version": "0.61.0",
3
+ "version": "0.61.1",
4
4
  "typings": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "files": [