mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-07 21:42:25 +00:00
Using context for extensions #657
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 @leotsarev on GitHub (Mar 5, 2024).
When my extension is rendering, it needs access to MarkdownParserContext.
Now I has to pass context through Inline objects, and i don't like it.
Is there way to extension to access it?
@xoofx commented on GitHub (Mar 14, 2024):
As per the name
MarkdownParserContext, it was added for accessing it from parsing. It should be possible to modify the code to have this context passed around. We might have to rename it though (e.gMardownContextor something)@leotsarev commented on GitHub (Mar 15, 2024):
@xoofx commented on GitHub (Mar 15, 2024):
Markdig is not 1.0, so we don't make a promise about not making breaking changes.
@xoofx commented on GitHub (Mar 15, 2024):
But that doesn't mean that we can't find a solution that provide backward compatibility. If there is a path, that's better for sure. 🙂