mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Make the MarkdownPipeline thread safe / immutable #8
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 @xoofx on GitHub (May 30, 2016).
The
MarkdownPipelineis currently not threadsafe and is not immutable.Options are to use a
MarkdownPipelineBuilderand a.Build()method that would freeze the pipeline into an opaqueMarkdownPipelineQuid of properties on parsers? We may not make it fully immutable (e.g we would leave OpeningCharacters not immutable to simplify the design and avoid having to introduce a freeze methods for parsers) but at least prevent parsers to be added/removed after the pipeline has been created. Still this has to be determined and documented clearly