Rust bindings to KaTeX
127
stars
144
commits
Rust
primary language
May 3, 2024
updated
This crate offers Rust bindings to KaTeX. This allows you to render LaTeX equations to HTML.
Add this to your Cargo.toml:
[dependencies]
katex = "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.let html = katex::render("E = mc^2").unwrap();
let opts = katex::Opts::builder().display_mode(true).build().unwrap();
let html_in_display_mode = katex::render_with_opts("E = mc^2", &opts).unwrap();
Rust
96.4%
Shell
1.8%
JavaScript
1.8%
Rust bindings to KaTeX
127
stars
144
commits
Rust
primary language
May 3, 2024
updated
This crate offers Rust bindings to KaTeX. This allows you to render LaTeX equations to HTML.
Add this to your Cargo.toml:
[dependencies]
katex = "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.let html = katex::render("E = mc^2").unwrap();
let opts = katex::Opts::builder().display_mode(true).build().unwrap();
let html_in_display_mode = katex::render_with_opts("E = mc^2", &opts).unwrap();
Rust
96.4%
Shell
1.8%
JavaScript
1.8%