Releases: xu-cheng/katex-rs
Releases · xu-cheng/katex-rs
0.1.3
0.1.2
- Add support for KaTeX trust options.
let opts = Opts::builder()
.trust(true)
.build()
.unwrap();
let html = render_with_opts(r#"\url{https://www.google.com}"#, opts).unwrap();
let opts = Opts::builder()
.trust_callback(|ctx: TrustContext| -> bool {
ctx.command == r#"\url"#
&& ctx.protocol == "https"
&& ctx.url == "https://www.google.com"
})
.build()
.unwrap();
let html = render_with_opts(r#"\url{https://www.google.com}"#, opts).unwrap();