pub struct ConvertOptions<'a> {Show 22 fields
pub title: Option<&'a str>,
pub default_title: Option<&'a str>,
pub lang: &'a str,
pub theme: Theme,
pub allow_unsafe: bool,
pub hardbreaks: bool,
pub highlight: bool,
pub highlight_languages: HighlightLanguages<'a>,
pub math: Option<MathMode>,
pub mermaid: Option<MermaidMode>,
pub cjk_fonts: bool,
pub minify: bool,
pub embed_images: bool,
pub base_path: Option<&'a Path>,
pub css: Option<&'a str>,
pub extra_css: Option<&'a str>,
pub highlight_js: Option<&'a str>,
pub highlight_css: Option<&'a str>,
pub mathjax_js: Option<&'a str>,
pub katex_js: Option<&'a str>,
pub katex_css: Option<&'a str>,
pub mermaid_js: Option<&'a str>,
}Expand description
Options for convert.
Fields§
§title: Option<&'a str>The title of the HTML file. When it is None, the title is looked up in the front matter and then in the first level-1 heading.
default_title: Option<&'a str>The title to use when no title can be found in the Markdown file.
lang: &'a strThe lang attribute of the <html> element. An empty string omits the attribute.
theme: ThemeThe color theme.
allow_unsafe: boolAllow raw HTML and dangerous URLs.
hardbreaks: boolTreat a single line break as a <br>.
highlight: boolEmbed highlight.js when the Markdown file has code blocks with a supported language.
highlight_languages: HighlightLanguages<'a>Which code block languages make highlight.js be embedded.
math: Option<MathMode>How the math is rendered. None leaves the math alone.
mermaid: Option<MermaidMode>How the Mermaid diagrams are rendered. None leaves a ```mermaid block as a code block.
cjk_fonts: boolEmbed the CJK fonts.
minify: boolMinify the output HTML.
embed_images: boolEmbed local images as data URLs.
base_path: Option<&'a Path>The directory that relative paths in the Markdown file are resolved against.
css: Option<&'a str>A stylesheet which replaces the built-in one.
extra_css: Option<&'a str>A stylesheet which is appended after all the other stylesheets.
highlight_js: Option<&'a str>A script which replaces the built-in highlight.js.
highlight_css: Option<&'a str>A stylesheet which replaces the built-in highlight.js theme.
mathjax_js: Option<&'a str>A script which replaces the built-in MathJax.
katex_js: Option<&'a str>A script which replaces the built-in KaTeX.
katex_css: Option<&'a str>A stylesheet which replaces the built-in KaTeX one.
mermaid_js: Option<&'a str>A script which replaces the built-in Mermaid.