Skip to main content

render

Function render 

Source
pub fn render(
    code: &str,
    language: Option<&str>,
    settings: &Settings,
) -> Vec<Line>
Expand description

A fenced code block as a panel: every line exactly settings.width cells, at least MIN_WIDTH, highlighted when the language is known, within the bounds of budget.rs. language is a language name (rust, ts), not a whole fence info string.