wgsldoc 1.0.1

Documentation generator for WGSL shaders
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Module for converting markdown text to HTML.

/// Converts the given markdown string to HTML.
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()
}