mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Tables are wrongly rendered using HtmlRenderer #381
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 @Thoorium on GitHub (Jul 10, 2020).
Markdig version: 0.20.0
I have an extension method to render markdown to html to handle the url base of the links in the documents. To achieve this, I use the
HtmlRenderer.This is the markdown it process.
When I inspect the markdown document, I can see it detected a table in my markup.

But the output html is wrong.
If I use
Markdig.Markdown.ToHtml(...)the table outputs correctly. Is there anything I'm missing?@Thoorium commented on GitHub (Jul 10, 2020):
Turns out that I need to pass a HtmlTableRenderer to my HtmlRenderer.
With this is works. Sorry for a small waste of time.
@MihaZupan commented on GitHub (Jul 10, 2020):
You need to configure the renderer for the pipeline before rendering.
pipeline.Setup(renderer)@Thoorium commented on GitHub (Jul 10, 2020):
Weird. I pass the pipeline to the markdown document when I read it the first time and my extensions works correctly when I render the document. So far only tables weren't working. Anything else I could be missing?