ratex_dart 0.0.1
ratex_dart: ^0.0.1 copied to clipboard
KaTeX-compatible math rendering in pure Dart (no Flutter dependency), using the Rust RaTeX engine over FFI on native platforms and WebAssembly on the web.
0.0.1 #
- Initial release.
- Core API:
Ratex(backend registry, render calls,isInitialized),RatexOptions,DisplayList/DisplayItem/PathCommandmodels mirroring RaTeX's DisplayList JSON protocol v1 (unknown fields/variants tolerated),RatexColor,KatexFontId, exception hierarchy with parse-error source spans (string indices). - FFI backend over the
ratex_ffiRust crate on native platforms (RATEX_LIBandRatex.nativeLibraryPathoverrides, dev-build path discovery, AppleDynamicLibrary.process()fallback). - WebAssembly backend on the web: the same C ABI compiled to
wasm32-unknown-unknown, loaded from
Ratex.wasmUrl/Ratex.wasmBytesoverdart:js_interopwith no wasm-bindgen glue. - Display-list and SVG rendering (KaTeX glyph outlines embedded).
- CLI and browser examples.