Enum ChildRendering
#[non_exhaustive]
pub enum ChildRendering
Returned by the format_document_with_formatter callback to indicate
whether children of a node should be rendered with full HTML as usual, in
"plain" mode, such as for the title attribute of an image (which is a full
subtree in CommonMark — there are probably few other use cases for "plain"
mode), or whether they should be skipped.
Variants
-
HTML Indicates children should be rendered in full HTML as usual.
-
Plain Indicates children should be rendered in "plain" mode; see the source of
format_document_with_formatterfor details.-
Skip Indicates children should be skipped.
Trait Implementations
impl Clone for ChildRendering
fn clone(&self) -> Self
impl Copy for ChildRendering
impl Debug for ChildRendering
fn fmt(&self, f: &mut Formatter<'_>) -> Result