Repository navigation
Releases
Releases · veridit/swift-railroad-diagrams
0.1.1
George Nachman's fixes from iTerm2 9d2236a6, found by his review agent and a ~115k-input differential fuzz against the Rust original:
- Cached geometry: layout was exponential in nesting depth (200 nested wrappers now render instantly).
- Exact unicode-width 0.2.3 column widths, including emoji/ZWJ/variation-selector sequences.
- XML escaping per code point (specials followed by combining marks).
- Leading whitespace is rejected, matching pest.
Public var node properties re-measure when changed. Tests: 95 pass.
0.1.0
First release. A byte-exact Swift port of lukaslueg/railroad 0.3.12: every node, all 8 stylesheets, the railroad_dsl text format, and macOS PNG export (RailroadImage). Runs on Linux and Apple platforms. 87 reference SVGs from the Rust crate are checked byte-for-byte.