[go: up one dir, main page]

Type Alias comrak::BrokenLinkCallback

source ยท
pub type BrokenLinkCallback<'c> = &'c mut dyn FnMut(BrokenLinkReference<'_>) -> Option<ResolvedReference>;
Expand description

The type of the callback used when a reference link is encountered with no matching reference.

The details of the broken reference are passed in the BrokenLinkReference argument. If a ResolvedReference is returned, it is used as the link; otherwise, no link is made and the reference text is preserved in its entirety.