mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Having to pass a pipeline into ToHtml is weird #43
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 @dotnetchris on GitHub (Jul 15, 2016).
Simple fix is to provide an extension ontop of the pipeline
var html = _mycustomPipeline.ToHtml(markdown);Alternative solution, maybe
Build()returns a type different than MarkdownPipeline and it gives you an instance that does the correct things to haveToHtml().@xoofx commented on GitHub (Jul 16, 2016):
Sorry I will decline this. I would prefer not to introduce a different high-level API entry point in case you have a pipeline or not, so the current design is preferable as it is the same method. You can still use your extension method in your own project.