Skip to main content

embed_style_of

Function embed_style_of 

Source
pub fn embed_style_of(kind: EmbedType) -> EmbedStyle
Expand description

The EmbedStyle family a concrete EmbedType belongs to — the inverse (on the style axis) of embed_carrier, which resolves a (style, format) pair back to a carrier. Pairing it with a new metadata format is how a format conversion keeps a document’s embedding shape while changing only its frontmatter language: classify the current archetype, then embed_carrier the same style with the target format.

The bare delimiter frontmatters (---/+++/;;;) and the labeled markdown frontmatters (---json/---toml/---fig) are all Delimited; embed_carrier then lands each format on prov’s canonical delimiter spelling. Endmatter is grouped with the fenced CodeBlock forms (it is a trailing ```endmatter block); converting it to another format therefore moves it to a leading fenced block, since only YAML has an endmatter archetype.