pub struct Frontmatter {
pub value: String,
pub info: String,
pub fence: char,
pub fence_length: usize,
pub closing_fence_length: usize,
pub position: Option<Position>,
}Expand description
Language-agnostic frontmatter with an opaque format hint.
The contents are raw text: the Markdown parser does not interpret the
named language. Untagged --- and +++ forms retain their legacy Yaml
and Toml nodes; tagged forms and language-tagged code fences use this node.
Fields§
§value: StringRaw content between the fence lines, including its trailing line ending.
info: StringThe whole info string, with surrounding spaces and tabs removed. Escapes and character references remain literal, as in Markly.
fence: charOpening fence marker: a backtick, tilde, dash, or plus.
fence_length: usizeNumber of opening fence markers. Serialization may lengthen the fence to keep edited content from closing it prematurely.
closing_fence_length: usizeNumber of closing fence markers. Closing code fences can be longer than their opening fence.
position: Option<Position>Source position, including the fences.