Creating Tables #400

Open
opened 2026-01-29 14:35:48 +00:00 by claunia · 0 comments
Owner

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:

var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();
ArticlePreview preview = new ArticlePreview(txtTitle.Text, DateTime.Today.ToString("d"), Markdig.Markdown.ToHtml(txtArticle.Text, pipeline), tglDeprecated.IsChecked ?? false);

And I tried to create a simple table:

|---|---|
| abc | def |
|---|---|

The the text above is not converted to a table.

Is this supported? What am I missing?

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: ```cs var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build(); ArticlePreview preview = new ArticlePreview(txtTitle.Text, DateTime.Today.ToString("d"), Markdig.Markdown.ToHtml(txtArticle.Text, pipeline), tglDeprecated.IsChecked ?? false); ``` And I tried to create a simple table: ``` |---|---| | abc | def | |---|---| ``` The the text above is not converted to a table. Is this supported? What am I missing?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#400