Reading table from MarkdownDocument instance #515

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

Originally created by @dejanstojanovic on GitHub (Mar 22, 2022).

Hi,

I am trying to read simple table like the one below from an instance of MarkdownDocument.

|Column 1|Column 2|Column 3|
|--------|--------|--------|
|Value 1.1|Value 1.2|Value 1.3|
|Value 2.1|Value 2.2|Value 3.2|

What I do is creating MarkdownDocument with simple Markdown.Parse and I try to look through it.
The table is translated as ParagraphBlock with all rows as LiteralInline.

Is there a way to parse this to tabular like data structure sot that I can iterate through rows/cells?

Originally created by @dejanstojanovic on GitHub (Mar 22, 2022). Hi, I am trying to read simple table like the one below from an instance of MarkdownDocument. ``` |Column 1|Column 2|Column 3| |--------|--------|--------| |Value 1.1|Value 1.2|Value 1.3| |Value 2.1|Value 2.2|Value 3.2| ``` What I do is creating MarkdownDocument with simple Markdown.Parse and I try to look through it. The table is translated as ParagraphBlock with all rows as LiteralInline. Is there a way to parse this to tabular like data structure sot that I can iterate through rows/cells?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#515