14 releases

0.3.4 Apr 30, 2021
0.3.3 Mar 15, 2021
0.3.2 Feb 5, 2021
0.3.1 Dec 2, 2020
0.1.3 Feb 2, 2020

#70 in Math

Download history 53/week @ 2021-01-15 75/week @ 2021-01-22 52/week @ 2021-01-29 62/week @ 2021-02-05 233/week @ 2021-02-12 82/week @ 2021-02-19 53/week @ 2021-02-26 38/week @ 2021-03-05 56/week @ 2021-03-12 68/week @ 2021-03-19 79/week @ 2021-03-26 69/week @ 2021-04-02 70/week @ 2021-04-09 92/week @ 2021-04-16 57/week @ 2021-04-23 80/week @ 2021-04-30

331 downloads per month
Used in 9 crates (6 directly)

MIT/Apache

325KB
514 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
~105K SLoC