Returns Front Matter Yaml block content as a string
public static string ExtractFrontMatter(string markdown, bool stripFrontMatterDashes)
Return Value
YAML text including the the leading and ending ---
, or null if there is no YAML header
Parameters
markdown
the raw markdown text that includes YAML text
stripFrontMatterDashes
See also:
Class MarkdownUtilities© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic