Trying to get the pipe table to work #443

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

Originally created by @Dennizzzzz on GitHub (Mar 15, 2021).

Maybe a N00b question, but I'm trying to get a pipe table to work.
And I cannot find any C# example code.

Tried this:

var h = "a|b|b";
h += "--|--|--";
h += "1|2|3";
var r = MarkDig.Markdown.ToHtml();

but r results in:
<p>a|b|c--|--|--1|2|3</p>

documentation : here is not really helping...

Update:
Tried this, but also not working:

   var p = new Markdig.MarkdownPipelineBuilder().UsePipeTables().Build();
   var h = "a|b|c";
   h += "--|--|--";
   h += "1|2|3";
   var r = Markdig.Markdown.ToHtml(h,p);

What am I missing?

Originally created by @Dennizzzzz on GitHub (Mar 15, 2021). Maybe a N00b question, but I'm trying to get a pipe table to work. And I cannot find any C# example code. Tried this: ``` var h = "a|b|b"; h += "--|--|--"; h += "1|2|3"; var r = MarkDig.Markdown.ToHtml(); ``` but r results in: `<p>a|b|c--|--|--1|2|3</p>` documentation : [here](https://github.com/xoofx/markdig/blob/master/src/Markdig.Tests/Specs/PipeTableSpecs.md) is not really helping... Update: Tried this, but also not working: ``` var p = new Markdig.MarkdownPipelineBuilder().UsePipeTables().Build(); var h = "a|b|c"; h += "--|--|--"; h += "1|2|3"; var r = Markdig.Markdown.ToHtml(h,p); ``` 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#443