@unified-latex/unified-latex-util-parse
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -80,3 +80,7 @@ // libs/compiler-ast.ts | ||
return !nodes.some( | ||
(node) => match.anyString(node) && node.content.length > 1 || match.string(node, "^") || match.string(node, "_") | ||
(node) => ( | ||
// If there are multi-char strings or ^ and _ have been parsed as strings, we know | ||
// that we were not parsed in math mode. | ||
match.anyString(node) && node.content.length > 1 || match.string(node, "^") || match.string(node, "_") | ||
) | ||
); | ||
@@ -83,0 +87,0 @@ } |
{ | ||
"name": "@unified-latex/unified-latex-util-parse", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "Tools for manipulating unified-latex ASTs", | ||
@@ -8,12 +8,12 @@ "main": "index.js", | ||
"dependencies": { | ||
"@unified-latex/unified-latex-ctan": "^1.2.2", | ||
"@unified-latex/unified-latex-types": "^1.2.2", | ||
"@unified-latex/unified-latex-util-arguments": "^1.2.2", | ||
"@unified-latex/unified-latex-util-catcode": "^1.2.2", | ||
"@unified-latex/unified-latex-util-environments": "^1.2.2", | ||
"@unified-latex/unified-latex-util-match": "^1.2.2", | ||
"@unified-latex/unified-latex-util-pegjs": "^1.2.2", | ||
"@unified-latex/unified-latex-util-print-raw": "^1.2.2", | ||
"@unified-latex/unified-latex-util-trim": "^1.2.2", | ||
"@unified-latex/unified-latex-util-visit": "^1.2.2", | ||
"@unified-latex/unified-latex-ctan": "^1.3.0", | ||
"@unified-latex/unified-latex-types": "^1.3.0", | ||
"@unified-latex/unified-latex-util-arguments": "^1.3.0", | ||
"@unified-latex/unified-latex-util-catcode": "^1.3.0", | ||
"@unified-latex/unified-latex-util-environments": "^1.3.0", | ||
"@unified-latex/unified-latex-util-match": "^1.3.0", | ||
"@unified-latex/unified-latex-util-pegjs": "^1.3.0", | ||
"@unified-latex/unified-latex-util-print-raw": "^1.3.0", | ||
"@unified-latex/unified-latex-util-trim": "^1.3.0", | ||
"@unified-latex/unified-latex-util-visit": "^1.3.0", | ||
"unified": "^10.1.2" | ||
@@ -20,0 +20,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
80237
684