summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibMarkdown/ContainerBlock.h
AgeCommit message (Collapse)Author
2021-10-10LibMarkdown: Implement introspection of the document treeBen Wiederhake
2021-10-05LibMarkdown: Implement "tightness" for listsPeter Elliott
From the commonmark spec: A list is loose if any of its constituent list items are separated by blank lines, or if any of its constituent list items directly contain two block-level elements with a blank line between them. Otherwise a list is tight. (The difference in HTML output is that paragraphs in a loose list are wrapped in <p> tags, while paragraphs in a tight list are not.)
2021-10-05LibMarkdown: Add LineIteratorPeter Elliott
LineIterator wraps a vector's ConstIterator, to provide an iterator that can work on indented container blocks (like lists and blockquotes).
2021-10-05LibMarkdown: Refactor Document's parser into ContainerBlockPeter Elliott
This will better allow us too do things like have Lists and blockquotes support multiple blocks.