pub enum NodeSyntax<'a> {
Reference {
kind: ReferenceKind,
label: Text<'a>,
},
Footnote {
label: Text<'a>,
},
Code {
info: Text<'a>,
},
Frontmatter {
info: Text<'a>,
fence: CodeFence,
closing_fence_length: usize,
},
ListItem {
spread: bool,
},
}Expand description
Source formatting that is useful for Markdown serialization but unnecessary for HTML.
Parsed documents derive this lazily from node provenance. Explicit overrides allocate only when a caller edits this metadata. Semantic values remain in the node’s event kind.
Variants§
Reference
The authored reference label and whether it was full, collapsed, or shortcut.
Footnote
The authored spelling of a normalized footnote identifier.
Code
The decoded complete code info string, or the metadata after a math fence.
Frontmatter
Frontmatter’s raw info and original opening and closing fences.
ListItem
Whether a list item contains blank lines between its own blocks.
Trait Implementations§
Source§impl<'a> Clone for NodeSyntax<'a>
impl<'a> Clone for NodeSyntax<'a>
Source§impl<'a> Debug for NodeSyntax<'a>
impl<'a> Debug for NodeSyntax<'a>
impl<'a> Eq for NodeSyntax<'a>
Source§impl<'a> PartialEq for NodeSyntax<'a>
impl<'a> PartialEq for NodeSyntax<'a>
impl<'a> StructuralPartialEq for NodeSyntax<'a>
Auto Trait Implementations§
impl<'a> Freeze for NodeSyntax<'a>
impl<'a> RefUnwindSafe for NodeSyntax<'a>
impl<'a> Send for NodeSyntax<'a>
impl<'a> Sync for NodeSyntax<'a>
impl<'a> Unpin for NodeSyntax<'a>
impl<'a> UnsafeUnpin for NodeSyntax<'a>
impl<'a> UnwindSafe for NodeSyntax<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more