Skip to main content

heading_text

Function heading_text 

Source
pub fn heading_text(level: u8, text: &str) -> Block
Expand description

Create a heading block from text.

Out-of-range levels are clamped to 1..=6 for convenience in tests.