Skip to content

Best practice for parsing multiline statements? #663

Answered by colinodell
hason asked this question in Q&A
Discussion options

You must be logged in to vote

You could try looking at how the ListParser works. It works by identifying lines which are list items. If the current container isn't a ListBlock, it'll create that on-the-fly and add the item to it.

Perhaps you can use a similar approach for tables?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by colinodell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question General questions about the project or usage
2 participants
Converted from issue

This discussion was converted from issue #123 on June 12, 2021 14:10.