Skip to main content

ratex_dart 0.0.1 copy "ratex_dart: ^0.0.1" to clipboard
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/PathCommand models 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_ffi Rust crate on native platforms (RATEX_LIB and Ratex.nativeLibraryPath overrides, dev-build path discovery, Apple DynamicLibrary.process() fallback).
  • WebAssembly backend on the web: the same C ABI compiled to wasm32-unknown-unknown, loaded from Ratex.wasmUrl/Ratex.wasmBytes over dart:js_interop with no wasm-bindgen glue.
  • Display-list and SVG rendering (KaTeX glyph outlines embedded).
  • CLI and browser examples.
0
likes
160
points
681
downloads

Documentation

API reference

Publisher

verified publishermanymath.com

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#latex #katex #math #rendering #ffi

License

MIT (license)

More

Packages that depend on ratex_dart