Skip to main content

serialize_mapping

Function serialize_mapping 

Source
pub fn serialize_mapping(map: &Mapping, format: Format) -> Result<String>
Expand description

Serialize a metadata mapping back to a string in format — the same format it was parsed from, so a ```fig block is never rewritten as YAML.

Forces block layout (one list item per line) rather than fig 2.0’s default flow style for short sequences, matching the diffs humans expect from frontmatter.