mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Creating Tables #402
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 @SoftCircuits on GitHub (Sep 27, 2020).
I've been successfully using MarkdownSharp for a while now but was hoping to get some more sophisticated support for things like tables.
So I tried the following code:
And I tried to create a simple table:
The the text above is not converted to a table.
Is this supported? What am I missing?
@rjgamble commented on GitHub (Oct 23, 2020):
I think your markdown is missing a header definition. See below example:
Result in GitHub comment:
@nhamawi commented on GitHub (May 7, 2021):
I spent several hours trying to get Markdig to convert a markdown table to HTML and I'm getting only rows of text wrapped in < p > and < /p >. I'm using c#, Visual Studio 2019, and Markdig 0.24.0 from nuget. I'm creating a new MarkdownPipelineBuilder and adding .UsePipeTables(), but still no luck. The behavior is as if it's enforcing strict commonmark syntax which does not allow tables to be defined by using pipe symbols. I see no way to disable strict mode. However, I see documentation on this site for supporting pipe-based markup. Babelmark III also confirms that Markdig cannot support pipe-based markup which is in contrast to the documentation as I have pasted Markdig's own samples there and get the same (unexpected) result.
@xoofx commented on GitHub (May 7, 2021):
@nhamawi open a new issue and post the exact markdown text you are using so that we can reproduce the behaviour.