logo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![forbid(missing_docs)]
#![forbid(missing_debug_implementations)]
#![forbid(rustdoc::missing_crate_level_docs)]
#![doc = include_str!("../Readme.md")]
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/31191489")]
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/31191489")]

use wasm_bindgen::prelude::*;
mod options;
pub use options::{PrismLanguage, PrismOptions};

#[wasm_bindgen(module = "/src/prism.min.js")]
extern "C" {
    #[wasm_bindgen]
    pub fn prism_render(input: &str, lang: &str) -> String;
}
/// The needed css which should packing to project
pub const PRISM_CSS: &str = include_str!("prism.min.css");