@manuscripts/transform 2.3.22-LEAN-3841.2 → 2.3.22-LEAN-3841.3

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.
@@ -1584,7 +1584,12 @@ class JATSExporter {
1584
1584
  const texMath = this.document.createElement('tex-math');
1585
1585
  texMath.setAttribute('notation', 'LaTeX');
1586
1586
  texMath.setAttribute('version', 'MathJax');
1587
- texMath.innerHTML = node.attrs.contents;
1587
+ if (node.attrs.contents.includes('<![CDATA[')) {
1588
+ texMath.innerHTML = node.attrs.contents;
1589
+ }
1590
+ else {
1591
+ texMath.innerHTML = `<![CDATA[ ${node.attrs.contents} ]]>`;
1592
+ }
1588
1593
  return texMath;
1589
1594
  }
1590
1595
  else {
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "2.3.22-LEAN-3841.2";
4
+ exports.VERSION = "2.3.22-LEAN-3841.3";
@@ -1576,7 +1576,12 @@ export class JATSExporter {
1576
1576
  const texMath = this.document.createElement('tex-math');
1577
1577
  texMath.setAttribute('notation', 'LaTeX');
1578
1578
  texMath.setAttribute('version', 'MathJax');
1579
- texMath.innerHTML = node.attrs.contents;
1579
+ if (node.attrs.contents.includes('<![CDATA[')) {
1580
+ texMath.innerHTML = node.attrs.contents;
1581
+ }
1582
+ else {
1583
+ texMath.innerHTML = `<![CDATA[ ${node.attrs.contents} ]]>`;
1584
+ }
1580
1585
  return texMath;
1581
1586
  }
1582
1587
  else {
@@ -1 +1 @@
1
- export const VERSION = "2.3.22-LEAN-3841.2";
1
+ export const VERSION = "2.3.22-LEAN-3841.3";
@@ -1 +1 @@
1
- export declare const VERSION = "2.3.22-LEAN-3841.2";
1
+ export declare const VERSION = "2.3.22-LEAN-3841.3";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/transform",
3
3
  "description": "ProseMirror transformer for Manuscripts applications",
4
- "version": "2.3.22-LEAN-3841.2",
4
+ "version": "2.3.22-LEAN-3841.3",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",