AnotherTest
eef794b8c6
LibMarkdown: Parse paragraphs line-wise
...
This gets rid of the doubled-up checks in `Paragraph::parse()`, and
makes a paragraph the last possible kind of block to be parsed.
2020-09-27 21:14:18 +02:00
AnotherTest
176a2f193c
LibMarkdown: Add support for Tables
...
This adds support for GFM-like tables.
The HTML rendering ignores the alignments and relative sizes, but the
terminal view does not!
2020-09-27 21:14:18 +02:00
AnotherTest
aa65f664a9
LibMarkdown: Take a 'view_width' argument for render_for_terminal()
...
Some constructs will require the width of the terminal (or a general
'width') to be rendered correctly, such as tables.
2020-09-27 21:14:18 +02:00
FalseHonesty
20faa93cb0
LibMarkdown: Change internal MD API to return OwnPtrs
...
Previously, all Markdown blocks had a virtual parse method which has
been swapped out for a static parse method returning an OwnPtr of
that block's type.
The Text class also now has a static parse method that will return an
Optional<Text>.
2020-05-30 00:32:12 +02:00
FalseHonesty
7ca562b200
LibMarkdown: Change MD Document parse API to return a RefPtr
...
Markdown documents are now obtained via the static Document::parse
method, which returns a RefPtr<Document>, or nullptr on failure.
2020-05-30 00:32:12 +02:00
Andreas Kling
ea204ef05b
LibMarkdown: Drop MD prefixes and move into "Markdown" namespace :^)
2020-04-28 21:04:25 +02:00