aboutsummaryrefslogtreecommitdiffstats
path: root/tests/math_text.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-11Refactor to use a bunch of `into`Libravatar Titus Wormer1-3/+3
2022-10-06Refactor to split parse from compile optionsLibravatar Titus Wormer1-18/+29
2022-09-28Add support for turning mdast to hastLibravatar Titus Wormer1-2/+4
2022-09-26Add support for compiling to mdastLibravatar Titus Wormer1-1/+29
See: <https://github.com/syntax-tree/mdast>.
2022-09-19Add support for parsing MDX ESM, expressionsLibravatar Titus Wormer1-2/+12
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).
2022-09-07Add support for recoverable syntax errorsLibravatar Titus Wormer1-26/+28
2022-08-26Add support for math (flow)Libravatar Titus Wormer1-30/+24
2022-08-26Add support for math (text)Libravatar Titus Wormer1-0/+190