1 unstable release

Uses old Rust 2015

0.1.0 Apr 21, 2018
0.0.2 Apr 21, 2018
0.0.1 Apr 21, 2018

#23 in #katex

Download history 174/week @ 2023-11-27 66/week @ 2023-12-04 90/week @ 2023-12-11 85/week @ 2023-12-18 11/week @ 2024-01-08 74/week @ 2024-01-15 28/week @ 2024-01-29 41/week @ 2024-02-19 49/week @ 2024-02-26 56/week @ 2024-03-04 34/week @ 2024-03-11

180 downloads per month
Used in 4 crates (3 directly)

Unlicense OR MIT

4KB

XaaS: Use KaTeX on docs.rs!

Thanks to pwnies for bringing this method to where I noticed it. Technically relies on this bug in docs.rs. See the result on docs.rs!

Add the following to your Cargo.toml:

[package.metadata.docs.rs]
rustdoc-args = [
    "--html-in-header",
    ".cargo/registry/src/github.com-1ecc6299db9ec823/katex-doc-0.1.0/katex.html",
]

And use $`inline\ math`$ or

```math
display-style\ math
```

If it so happens that that path does not always work (because this crate's build isn't in docs.rs cache), download katex.html from this repository, then put it at the root of your repository, include it in your publish, and replace the reference to katex-doc-ver.si.on with your crate.

For local documentation builds, acquire katex.html and use cargo rustdoc --open -- --html-in-header katex.html. If you know how to get cargo doc to set flags for rustdoc for just one crate when it's in the dependency graph, so that KaTeX-enabled docs can render properly when building docs as a dependency, please open an issue so we can document it.

No runtime deps