Skip to main content

## render_and_write

# Function render_and_write

Source

    pub(crate) fn render_and_write(
        input: Arc<SourceFile>,
        options: RenderOptions,
        edition: Edition,
    ) -> Result<(), String>

Expand description

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

Requires session globals to be available, for symbol interning.