10 releases

0.3.0 Nov 19, 2020
0.2.4 Jul 12, 2020
0.2.1 Feb 7, 2020
0.1.3 Feb 2, 2020

#64 in Math

Download history 55/week @ 2020-08-10 34/week @ 2020-08-17 37/week @ 2020-08-24 33/week @ 2020-08-31 44/week @ 2020-09-07 20/week @ 2020-09-14 21/week @ 2020-09-21 23/week @ 2020-09-28 23/week @ 2020-10-05 20/week @ 2020-10-12 26/week @ 2020-10-19 15/week @ 2020-10-26 21/week @ 2020-11-02 21/week @ 2020-11-09 46/week @ 2020-11-16 66/week @ 2020-11-23

113 downloads per month
Used in 6 crates (5 directly)

MIT/Apache

285KB
470 lines

katex-rs

Build Status Latest Version Rust Documentation

This crate offers Rust bindings to KaTeX. This allows you to render LaTeX equations to HTML.

Documentation

https://docs.rs/katex

Usage

Add this to your Cargo.toml:

[dependencies]
katex = "0.3"

Examples

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();

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~4MB
~106K SLoC