A blogging platform written in Rust for Cloudflare Workers, integrated with Standard Notes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
315 B

// Will be loaded by build.rs and add #[wasm_bindgen(inline_js = "...")] here
extern "C" {
#[wasm_bindgen(js_name = "highlightAuto")]
fn hljs_highlight_auto(code: &str) -> JsValue;
#[wasm_bindgen(catch, js_name = "highlight")]
fn hljs_highlight(lang: &str, code: &str) -> Result<JsValue, JsValue>;