aboutsummaryrefslogtreecommitdiffstats
path: root/tests/code_fenced.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-06Refactor to split parse from compile optionsLibravatar Titus Wormer1-6/+9
2022-09-28Add support for turning mdast to hastLibravatar Titus Wormer1-2/+4
2022-09-26Add support for compiling to mdastLibravatar Titus Wormer1-1/+35
See: <https://github.com/syntax-tree/mdast>.
2022-09-07Add support for recoverable syntax errorsLibravatar Titus Wormer1-2/+4
2022-08-18Add `pretty_assertions` to tests for diffsLibravatar Titus Wormer1-0/+1
2022-07-29Refactor to improve statesLibravatar Titus Wormer1-0/+6
* Remove custom kind wrappers, use plain bytes instead * Remove `Into`s, use the explicit expected types instead * Refactor to use `slice.as_str` in most places * Remove unneeded unique check before adding a definition * Use a shared CDATA prefix in constants * Inline byte checks into matches * Pass bytes back from parser instead of whole parse state * Refactor to work more often on bytes * Rename custom `size` to `len`
2022-07-18Add support for turning off constructsLibravatar Titus Wormer1-7/+15
2022-07-13Fix to close containers before several (blank) line endingsLibravatar Titus Wormer1-12/+10
2022-07-12Fix a lot of list thingsLibravatar Titus Wormer1-10/+12
* Add `ListItem`, `ListOrdered`, and `ListUnordered` tokens * Add support for multiline list items * Add support for tight lists * Fix bug where 10 digit long list item values worked * Fix skip bug when skipping over nested events
2022-07-11Fix block quote bugsLibravatar Titus Wormer1-6/+5
2022-07-08Fix bug around forcibly closed flow exitsLibravatar Titus Wormer1-19/+16
2022-07-08Add improved container enter/exit mechanismLibravatar Titus Wormer1-4/+4
2022-07-08Fix closing of flow when exiting containersLibravatar Titus Wormer1-2/+2
2022-07-08Add support for concrete constructsLibravatar Titus Wormer1-12/+10
2022-07-07Add basic support for block quotesLibravatar Titus Wormer1-32/+36
2022-07-01Make paragraphs really fastLibravatar Titus Wormer1-1/+1
The approach that `micromark-js` takes is as follows: to parse a paragraph, check whether each line starts with something else. If it does, exit, otherwise continue. That is slow, because our actual flow parser does similar things: the work was being done twice. To fix this, this commit introduces parsing each line of a paragraph separately. And finally, when done with flow, combining adjacent paragraphs. This same mechanism is reused for setext headings. Additionally, this commit adds support for interrupting things (or not). E.g., HTML (flow, complete) cannot interrupt paragraphs. Definitions cannot interrupt paragraphs, and connect be interrupted either, but they can follow each other.
2022-06-16Add heading (setext)Libravatar Titus Wormer1-6/+5
2022-06-15Add code (text)Libravatar Titus Wormer1-18/+15
2022-06-09Add basic subtokenization, string content in fenced codeLibravatar Titus Wormer1-6/+5