pub enum EmitKind {
Inline(String),
Html(String),
Deferred(String),
Link(String),
Block(Box<Block>),
}Expand description
The shape of the dispatcher’s emitted content. Mirrors
super::embed_renderer::RenderedEmbed for embeds, plus a separate
variant for non-embed wikilinks ([[file]]).
Variants§
Inline(String)
Markdown-level text that downstream CommonMark will re-process.
Example: image renderer returns .
Html(String)
Final HTML — must NOT be re-parsed by the markdown engine. Example: iframe renderer.
Deferred(String)
A marker comment for a post-pass resolver (notebook, table, plugin).
Link(String)
A standard markdown link string. Used for non-embed wikilinks
([[file]] rather than ![[file]]).
Block(Box<Block>)
A typed AST block to splice in directly (image-embed synth-collapse).
Unlike EmitKind::Html (which lands as an opaque Block::Other
carrying no BlockMeta), a typed block placed 1:1 at blocks[i]
inherits the source paragraph’s block_meta[i] — so a lone image
embed rendered as Block::Figure keeps its data-source-line in
preview/site builds. The image arm uses this; non-image embeds keep
emitting EmitKind::Html.