katex-rs
This crate offers Rust bindings to KaTeX. This allows you to render LaTeX equations to HTML.
Documentation
Usage
Add this to your Cargo.toml
:
[]
= "0.4"
This crate offers the following features:
quick-js
: Enable by default. Use quick-js as the JS backend.duktape
: Use duktape as the JS backend. You need to disable the default features to enable this backend.wasm-js
: Use wasm-bindgen and js-sys as the JS backend. You need to disable the default features to enable this backend.
Examples
let html = render.unwrap;
let opts = builder.display_mode.build.unwrap;
let html_in_display_mode = render_with_opts.unwrap;