mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-15 14:05:39 +00:00
[PR #578] [CLOSED] ADD: Context to Renderer #1123
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?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/578
Author: @grishat
Created: 12/3/2021
Status: ❌ Closed
Base:
master← Head:add-context-to-renderer📝 Commits (1)
bd124f0ADD: Context to Renderer📊 Changes
6 files changed (+22 additions, -13 deletions)
View changed files
📝
src/Markdig/Markdown.cs(+5 -5)📝
src/Markdig/MarkdownPipeline.cs(+5 -3)📝
src/Markdig/Renderers/HtmlRenderer.cs(+1 -1)📝
src/Markdig/Renderers/Normalize/NormalizeRenderer.cs(+1 -1)📝
src/Markdig/Renderers/Roundtrip/RoundtripRenderer.cs(+1 -1)📝
src/Markdig/Renderers/TextRendererBase.cs(+9 -2)📄 Description
Added MarkdownParserContext to Renderer.
I wrote my own LinkExtension render
TryLinkInlineRenderer, and need context access fromHtmlRenderer, that available only in parser.I think the context should be available both in the parser and in the render. This required minimal changes.
What do you think?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.