@manuscripts/transform 2.3.23 → 2.3.24-LEAN-3841.0
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.
|
@@ -1582,7 +1582,14 @@ class JATSExporter {
|
|
|
1582
1582
|
createEquation(node, isInline = false) {
|
|
1583
1583
|
if (node.attrs.format === 'tex') {
|
|
1584
1584
|
const texMath = this.document.createElement('tex-math');
|
|
1585
|
-
texMath.
|
|
1585
|
+
texMath.setAttribute('notation', 'LaTeX');
|
|
1586
|
+
texMath.setAttribute('version', 'MathJax');
|
|
1587
|
+
if (node.attrs.contents.includes('<![CDATA[')) {
|
|
1588
|
+
texMath.innerHTML = node.attrs.contents;
|
|
1589
|
+
}
|
|
1590
|
+
else {
|
|
1591
|
+
texMath.innerHTML = `<![CDATA[ ${node.attrs.contents} ]]>`;
|
|
1592
|
+
}
|
|
1586
1593
|
return texMath;
|
|
1587
1594
|
}
|
|
1588
1595
|
else {
|
package/dist/cjs/version.js
CHANGED
|
@@ -1574,7 +1574,14 @@ export class JATSExporter {
|
|
|
1574
1574
|
createEquation(node, isInline = false) {
|
|
1575
1575
|
if (node.attrs.format === 'tex') {
|
|
1576
1576
|
const texMath = this.document.createElement('tex-math');
|
|
1577
|
-
texMath.
|
|
1577
|
+
texMath.setAttribute('notation', 'LaTeX');
|
|
1578
|
+
texMath.setAttribute('version', 'MathJax');
|
|
1579
|
+
if (node.attrs.contents.includes('<![CDATA[')) {
|
|
1580
|
+
texMath.innerHTML = node.attrs.contents;
|
|
1581
|
+
}
|
|
1582
|
+
else {
|
|
1583
|
+
texMath.innerHTML = `<![CDATA[ ${node.attrs.contents} ]]>`;
|
|
1584
|
+
}
|
|
1578
1585
|
return texMath;
|
|
1579
1586
|
}
|
|
1580
1587
|
else {
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.3.
|
|
1
|
+
export const VERSION = "2.3.24-LEAN-3841.0";
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.
|
|
1
|
+
export declare const VERSION = "2.3.24-LEAN-3841.0";
|
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.
|
|
4
|
+
"version": "2.3.24-LEAN-3841.0",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -82,4 +82,4 @@
|
|
|
82
82
|
"rimraf": "^3.0.2",
|
|
83
83
|
"typescript": "^4.0.5"
|
|
84
84
|
}
|
|
85
|
-
}
|
|
85
|
+
}
|