@krautzource/sre-to-tree
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [2.0.1](https://github.com/krautzource/sre-to-tree/compare/v2.0.0...v2.0.1) (2021-04-12) | ||
### Bug Fixes | ||
* select all descendantNodes ([13fd676](https://github.com/krautzource/sre-to-tree/commit/13fd67600d35ad9dbb49e4b4b8dcba66aef2e4f9)), closes [#21](https://github.com/krautzource/sre-to-tree/issues/21) | ||
## [2.0.0](https://github.com/krautzource/sre-to-tree/compare/v1.4.0...v2.0.0) (2021-03-18) | ||
@@ -7,0 +14,0 @@ |
const sre2tree = require('../lib'); | ||
const tex2svg = require('../test/tex2svg'); | ||
const out = tex2svg('{\\mathbb{A}}^p_f'); | ||
const out = tex2svg(process.argv[2] || '{\\mathbb{A}}^p_f'); | ||
const svg = out.firstElementChild; | ||
sre2tree(svg); | ||
console.log(svg.outerHTML); |
@@ -121,3 +121,3 @@ /** | ||
const level = 0; | ||
const descendantNodes = skeletonNode.querySelectorAll('*'); | ||
const descendantNodes = node.querySelectorAll('*'); | ||
const semanticIdTable = generateSemanticIdTable(descendantNodes); | ||
@@ -124,0 +124,0 @@ rewriteNode(semanticIdTable, level, skeletonNode); |
{ | ||
"name": "@krautzource/sre-to-tree", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Rewritig speech-rule-engine enriched DOM nodes to a labeled WAI ARIA tree", | ||
@@ -30,3 +30,3 @@ "main": "lib.js", | ||
"mathjax-full": "^3.1.2", | ||
"speech-rule-engine": "^3.2.0-beta.2", | ||
"speech-rule-engine": "^3.2.0-beta.4", | ||
"standard-version": "^9.1.1", | ||
@@ -33,0 +33,0 @@ "tape": "^5.2.0" |
@@ -1,11 +0,10 @@ | ||
const test = require('tape'); | ||
const sre2tree = require('../lib'); | ||
const tex2svg = require('./tex2svg'); | ||
test('rewriteNode warnings', (t) => { | ||
t.plan(1); | ||
const out = tex2svg('\\begin{eqnarray} x \\tag{1} \\\\a \\tag{x}\\end{eqnarray}'); | ||
const svg = out.firstElementChild; | ||
sre2tree(svg); | ||
t.ok(true , 'FAKE TEST - check there were no console warnings!'); | ||
}); | ||
const out = tex2svg('\\begin{eqnarray} x \\tag{1} \\\\a \\tag{x}\\end{eqnarray}'); | ||
const svg = out.firstElementChild; | ||
sre2tree(svg); | ||
const sreProperOwns = tex2svg('= a{bc}'); | ||
const sreProperOwnsSvg = sreProperOwns.firstElementChild; | ||
sre2tree(sreProperOwnsSvg); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50831
18
480
1
1