You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varpipeline=newMarkdownPipelineBuilder().UseYamlFrontMatter().EnableTrackTrivia().Build();varmd=File.ReadAllText("my-awesome-md");vardocument=Markdown.Parse(md,pipeline);varsw=newStringWriter();varrr=newRoundtripRenderer(sw);rr.ObjectRenderers.Add(newYamlFrontMatterRenderer());// this line doesn't change anythingrr.Write(document);Console.WriteLine(sw.ToString());
it outputs
title: Hello world
My awesome **markdown**
with --- removed around yaml frontmatter
The text was updated successfully, but these errors were encountered:
If I have a markdown file my-awesome.md
which I want to edit programatically
it outputs
with --- removed around yaml frontmatter
The text was updated successfully, but these errors were encountered: