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

#21 in #katex

Download history 125/week @ 2024-07-22 31/week @ 2024-07-29 32/week @ 2024-08-05 37/week @ 2024-08-12 114/week @ 2024-08-19 73/week @ 2024-08-26 152/week @ 2024-09-02 319/week @ 2024-09-09 47/week @ 2024-09-16 78/week @ 2024-09-23 80/week @ 2024-09-30 98/week @ 2024-10-07 491/week @ 2024-10-14 94/week @ 2024-10-21 17/week @ 2024-10-28 239/week @ 2024-11-04

842 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