dwml-ts 0.5.1 → 0.5.2
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.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -38,6 +38,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38
38
|
unicodeToLatex: ()=>unicodeToLatex
|
|
39
39
|
});
|
|
40
40
|
const txml_namespaceObject = require("txml/txml");
|
|
41
|
+
const external_entities_namespaceObject = require("entities");
|
|
41
42
|
const UNI2LATEX = {
|
|
42
43
|
34: "''",
|
|
43
44
|
35: "\\#",
|
|
@@ -1985,7 +1986,7 @@ function isElement(node) {
|
|
|
1985
1986
|
}
|
|
1986
1987
|
function textContent(node) {
|
|
1987
1988
|
let out = '';
|
|
1988
|
-
for (const child of node.children)out += 'string' == typeof child ? child : textContent(child);
|
|
1989
|
+
for (const child of node.children)out += 'string' == typeof child ? (0, external_entities_namespaceObject.decodeXML)(child) : textContent(child);
|
|
1989
1990
|
return out;
|
|
1990
1991
|
}
|
|
1991
1992
|
function pyFormat(template, positional = [], named = {}) {
|