wgsldoc 0.2.1

Documentation generator for WGSL shaders
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub fn to_html(value: &str) -> String {
    use markdown as md;

    md::to_html_with_options(
        value, 
        &md::Options {
            compile: md::CompileOptions {
                allow_dangerous_html: true,
                ..md::CompileOptions::default()
            },
            ..md::Options::default()
        }
    ).unwrap()
}