aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/document.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix to prefer flow over definitions, setext headingsLibravatar Titus Wormer2022-09-141-2/+3
| | | | | | | | | | | | | | An undocumented part of CommonMark is how to deal with things in definition labels or definition titles (which both can span multiple lines). Can flow (or containers?) interrupt them? They can according to the `cmark` reference parser, so this was implemented here. This adds a new `Content` content type, which houses zero or more definitions, and then zero-or-one paragraphs. Content can be followed by a setext heading underline, which either turns into a setext heading when the content ends in a paragraph, or turns into the start of the following paragraph when it is followed by content that starts with a paragraph, or turns into a stray paragraph.
* Fix whitespace in GFM footnote definition identifiersLibravatar Titus Wormer2022-09-121-1/+10
| | | | | | * Fix a crash on line endings in footnote definitions * Fix to match spaces and tabs in identifiers to `cmark-gfm` * Fix order of one attribute
* Add support for recoverable syntax errorsLibravatar Titus Wormer2022-09-071-6/+15
|
* Add support for GFM tablesLibravatar Titus Wormer2022-08-311-3/+13
|
* Add support for GFM footnotesLibravatar Titus Wormer2022-08-251-6/+33
|
* Fix lazy paragraph after definitionLibravatar Titus Wormer2022-08-221-9/+59
|
* Add `no_std + alloc`Libravatar Titus Wormer2022-08-161-0/+1
|
* Add support for frontmatterLibravatar Titus Wormer2022-08-161-2/+18
|
* Refactor to proof docs, grammarsLibravatar Titus Wormer2022-08-151-2/+2
|
* Refactor to move `content` to `construct`Libravatar Titus Wormer2022-08-151-0/+492