Function tpnote_lib::highlight::get_css

source ·
pub fn get_css() -> String
Expand description

Get the corresponding CSS, which can be inlined or stored in a file. TODO: make this configurable.

Examples found in repository?
src/config.rs (line 770)
764
765
766
767
768
769
770
771
772
773
774
775
    fn default() -> Self {
        TmplHtml {
            viewer: TMPL_HTML_VIEWER.to_string(),
            viewer_error: TMPL_HTML_VIEWER_ERROR.to_string(),
            exporter: TMPL_HTML_EXPORTER.to_string(),
            css: {
                let mut css = get_css();
                css.push_str(TMPL_HTML_CSS_COMMON);
                css
            },
        }
    }