aboutsummaryrefslogtreecommitdiffstats
path: root/src/state.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove some unused code in gfm tablesLibravatar Titus Wormer2022-10-131-2/+0
|
* Refactor to improve coverage of titlesLibravatar Titus Wormer2022-10-131-2/+2
|
* Remove unneeded states in `partial_label`Libravatar Titus Wormer2022-10-131-4/+2
|
* Refactor to use a bunch of `into`Libravatar Titus Wormer2022-10-111-2/+2
|
* Add support for parsing MDX ESM, expressionsLibravatar Titus Wormer2022-09-191-2/+18
| | | | | | | | | | | | | | | | This commit adds support for hooks that lets a user integrate another parser with `micromark-rs`, to parse ESM and expressions according to a particular grammar (such as a programming language, typically JavaScript). For an example integrating with SWC, see `tests/test_utils/mod.rs`. The integration occurs with two functions passed in `options`: `mdx_expression_parse` and `mdx_esm_parse`. The can signal back to micromark when they are successful, whether there is an error at the end (in which case micromark will try to parse more), or whether there is a syntax error (in which case micromark will crash).
* Fix to prefer flow over definitions, setext headingsLibravatar Titus Wormer2022-09-141-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.
* Fix whitespace in GFM footnote definition identifiersLibravatar Titus Wormer2022-09-121-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
* Add support for mdx attribute (value) expressionsLibravatar Titus Wormer2022-09-091-0/+9
|
* Add mdx expression (flow, text)Libravatar Titus Wormer2022-09-091-0/+28
|
* Fix to allow blank lines in mdx jsx (flow)Libravatar Titus Wormer2022-09-091-6/+0
|
* Refactor to order statesLibravatar Titus Wormer2022-09-081-197/+194
|
* Add support for mdx jsx (flow)Libravatar Titus Wormer2022-09-081-1/+25
|
* Refactor to move jsx parsing to partialLibravatar Titus Wormer2022-09-081-56/+60
|
* Add support for recoverable syntax errorsLibravatar Titus Wormer2022-09-071-1/+24
|
* Add initial states for MDX JSX (text)Libravatar Titus Wormer2022-09-061-0/+64
|
* Fix to implement GFM autolink literals exactlyLibravatar Titus Wormer2022-09-051-0/+60
|
* Add support for GFM tablesLibravatar Titus Wormer2022-08-311-0/+51
|
* Add support for math (flow)Libravatar Titus Wormer2022-08-261-36/+36
|
* Add support for math (text)Libravatar Titus Wormer2022-08-261-10/+10
|
* Add support for GFM footnotesLibravatar Titus Wormer2022-08-251-0/+34
|
* Add support for GFM task list itemLibravatar Titus Wormer2022-08-221-0/+14
|
* Add support for frontmatterLibravatar Titus Wormer2022-08-161-0/+24
|
* Refactor to proof docs, grammarsLibravatar Titus Wormer2022-08-151-3/+5
|
* Add derive of `Eq` where possibleLibravatar Titus Wormer2022-08-151-2/+2
|
* Refactor to move `content` to `construct`Libravatar Titus Wormer2022-08-151-32/+33
|
* Refactor to rename list construct to list itemLibravatar Titus Wormer2022-08-151-30/+30
|
* Remove unneeded stateLibravatar Titus Wormer2022-08-121-2/+0
|
* Remove `match` statements if clumsyLibravatar Titus Wormer2022-08-121-2/+0
|
* Refactor to improve docs of each functionLibravatar Titus Wormer2022-08-121-11/+5
|
* Refactor to move `space_or_tab_eol` to own fileLibravatar Titus Wormer2022-08-111-5/+5
|
* Refactor to move some code to `state.rs`Libravatar Titus Wormer2022-08-111-0/+622