aboutsummaryrefslogtreecommitdiffstats
path: root/src/state.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-09-14Fix to prefer flow over definitions, setext headingsLibravatar Titus Wormer1-97/+105
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.
2022-09-12Fix whitespace in GFM footnote definition identifiersLibravatar Titus Wormer1-0/+8
* 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
2022-09-09Add support for mdx attribute (value) expressionsLibravatar Titus Wormer1-0/+9
2022-09-09Add mdx expression (flow, text)Libravatar Titus Wormer1-0/+28
2022-09-09Fix to allow blank lines in mdx jsx (flow)Libravatar Titus Wormer1-6/+0
2022-09-08Refactor to order statesLibravatar Titus Wormer1-197/+194
2022-09-08Add support for mdx jsx (flow)Libravatar Titus Wormer1-1/+25
2022-09-08Refactor to move jsx parsing to partialLibravatar Titus Wormer1-56/+60
2022-09-07Add support for recoverable syntax errorsLibravatar Titus Wormer1-1/+24
2022-09-06Add initial states for MDX JSX (text)Libravatar Titus Wormer1-0/+64
2022-09-05Fix to implement GFM autolink literals exactlyLibravatar Titus Wormer1-0/+60
2022-08-31Add support for GFM tablesLibravatar Titus Wormer1-0/+51
2022-08-26Add support for math (flow)Libravatar Titus Wormer1-36/+36
2022-08-26Add support for math (text)Libravatar Titus Wormer1-10/+10
2022-08-25Add support for GFM footnotesLibravatar Titus Wormer1-0/+34
2022-08-22Add support for GFM task list itemLibravatar Titus Wormer1-0/+14
2022-08-16Add support for frontmatterLibravatar Titus Wormer1-0/+24
2022-08-15Refactor to proof docs, grammarsLibravatar Titus Wormer1-3/+5
2022-08-15Add derive of `Eq` where possibleLibravatar Titus Wormer1-2/+2
2022-08-15Refactor to move `content` to `construct`Libravatar Titus Wormer1-32/+33
2022-08-15Refactor to rename list construct to list itemLibravatar Titus Wormer1-30/+30
2022-08-12Remove unneeded stateLibravatar Titus Wormer1-2/+0
2022-08-12Remove `match` statements if clumsyLibravatar Titus Wormer1-2/+0
2022-08-12Refactor to improve docs of each functionLibravatar Titus Wormer1-11/+5
2022-08-11Refactor to move `space_or_tab_eol` to own fileLibravatar Titus Wormer1-5/+5
2022-08-11Refactor to move some code to `state.rs`Libravatar Titus Wormer1-0/+622