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:

toml [dependencies] katex = "0.1"

Examples

```rust let html = katex::render("E = mc^2").unwrap();

let opts = katex::Opts::builder().displaymode(true).build().unwrap(); let htmlindisplaymode = katex::renderwithopts("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.