mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-12 05:44:48 +00:00
YamlFrontMatterExtension not working, probably my error #199
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dullroar on GitHub (Mar 11, 2018).
First off, this is a great package - really well done, appreciate the hard work!
The extension is not working for me - it renders the YAML front matter in a
<p>tag as the first content in the HTML output. I have tried:var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();...and:
var pipeline = new MarkdownPipelineBuilder().UseYamlFrontMatter().UseAdvancedExtensions().Build();....and:
var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().UseYamlFrontMatter().Build();I have also ensured that:
---, and those are the only three characters on the line (excluding the newline).hexdumpshows the line as2d 2d 2d 0a....line following the front matter has only those three characters on the line (excluding the newline).hexdumpshows the line as2e 2e 2e 0a.What am I doing wrong?
This is being used in a .NET Core application on Linux with Markdig NuGet package 0.14.8.
@dullroar commented on GitHub (Mar 11, 2018):
Figured it out, I think. It is because after building up that pipeline, I don't actually pass it to the
ToHtmlmethod. Doh!