Skip to main content

EmbedProvider

Type Alias EmbedProvider 

Source
pub type EmbedProvider = Rc<dyn Fn(&str) -> Option<(SharedString, SharedString)>>;
Expand description

Resolves a standalone ![[target]] embed to (source label, content) — the host pre-resolves targets from its database (a page, a #^id block, or a #Heading section) since render-time providers can’t query. None (or a missing target) falls back to rendering the line as text.

Aliased Type§

pub struct EmbedProvider { /* private fields */ }