Skip to main content

node_from_map

Function node_from_map 

Source
pub fn node_from_map(
    fm: &Map<String, Value>,
    body: String,
) -> Result<Node, ParseError>
Expand description

Build a node from already-parsed frontmatter (a JSON map) and a body. Shared by the file parser and by anything that receives a node as JSON (the server, the editor).