rustdoc::markdown - Rust (original) (raw)

rustdoc

Module markdown

Source

Expand description

Standalone markdown rendering.

For the (much more common) case of rendering markdown in doc-comments, seecrate::html::markdown.

This is used when rendering a markdown file to an html file, without processing rust source code.

Functions§

extract_leading_metadata 🔒

Separate any lines at the start of the file that begin with # or %.

render_and_write 🔒

Render input (e.g., “foo.md”) into an HTML file in output(e.g., output = “bar” => “bar/foo.html”).