Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactor to improve `to_hast` internals | 2022-10-06 | 2 | -828/+624 | |
| | |||||
* | Refactor to share identifier methods | 2022-10-06 | 1 | -15/+5 | |
| | |||||
* | Add support for form feeds as html whitespace | 2022-10-05 | 1 | -2/+1 | |
| | |||||
* | Add support for rewriting JSX | 2022-10-05 | 4 | -2/+1194 | |
| | |||||
* | Refactor to share a test utility | 2022-10-04 | 3 | -27/+64 | |
| | |||||
* | Add support for creating a component, using layout | 2022-10-03 | 3 | -2/+653 | |
| | |||||
* | Add support for turning hast into swc | 2022-09-30 | 5 | -51/+836 | |
| | |||||
* | Add note on future idea | 2022-09-29 | 1 | -0/+4 | |
| | |||||
* | Add support for turning mdast to hast | 2022-09-28 | 4 | -245/+1986 | |
| | |||||
* | Add support for parsing MDX ESM, expressions | 2022-09-19 | 1 | -0/+245 | |
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). |