Struct HeadingMeta
#[non_exhaustive]
pub struct HeadingMeta { pub level: u8, pub content: String, pub sourcepos: Option<Sourcepos> }
The struct passed to the HeadingAdapter for custom heading implementations.
Fields
level: u8The level of the heading; from 1 to 6 for ATX headings, 1 or 2 for setext headings.
content: StringThe content of the heading as a "flattened" string—flattened in the sense that any
<strong>or other tags are removed. In the Markdown heading## This is **bold**, for example, the would be the string"This is bold".sourcepos: Option<Sourcepos>Source position information for the heading, if any.
Implementations
impl HeadingMeta
fn new(level: u8, content: impl Into<String>, sourcepos: Option<Sourcepos>) -> SelfCreate a new
HeadingMeta.
Trait Implementations
impl Clone for HeadingMeta
fn clone(&self) -> Self
impl Debug for HeadingMeta
fn fmt(&self, f: &mut Formatter<'_>) -> Result