Repository navigation
Review-feedback release: addresses the Obsidian plugin review scan. No functional changes — rendered output is byte-identical to 0.1.0 (verified against the golden masters).
Changed
- No more
innerHTML. Rendered SVG is now parsed withDOMParserand appended as a real element; error blocks are built with Obsidian'screateEl, so error text travels astextContentand the DOM handles escaping. A test now asserts the built bundle never assignsinnerHTML. - Obsidian DOM helpers throughout. The zoom/legend control buttons use
createDiv/createElinstead ofdocument.createElement. - Typed renderer internals. The shape-kwargs type is a real interface instead of
Record<string, any>, clearing the scan'sno-unsafe-*warnings at their root. Removed dead code (unused constant and import) and an unneeded type assertion.
Notes for reviewers
The remaining scan warnings (node: imports and console output in src/cli.ts / src/io.ts) are isokit's Node CLI shell, which is not part of the plugin bundle — tests/obsidian.ts asserts the built main.js contains no node: requires.