Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2022-10-13 | Rename crate to `markdown` | Titus Wormer | 8 | -13/+13 | |
2022-10-12 | Add internals to compile JSX away (wip) | Titus Wormer | 3 | -1/+223 | |
2022-10-11 | Refactor some internals to accept mutable references | Titus Wormer | 2 | -7/+5 | |
2022-10-11 | Refactor test utilities to improve names | Titus Wormer | 9 | -157/+221 | |
2022-10-11 | Refactor to use a bunch of `into` | Titus Wormer | 2 | -13/+9 | |
2022-10-11 | Refactor some hidden internals | Titus Wormer | 2 | -8/+8 | |
2022-10-11 | Add support for proper positional info in swc tree | Titus Wormer | 9 | -248/+565 | |
* Fix some positional info in SWC error messages * Add positional info in `to_document` on duplicate layouts * Add support for `path` on `Program` (`to_swc`, `to_document`, `jsx_rewrite`), for the path of a file on disk * Add support for `development` to `jsx-rewrite`, which when defined will embed info on where tags were written into the runtime code when they are not passed * Refactor to move some utilities to `micromark_swc_utils.rs`, `swc_utils.rs` | |||||
2022-10-06 | Refactor to improve `to_hast` internals | Titus Wormer | 2 | -828/+624 | |
2022-10-06 | Refactor to share identifier methods | Titus Wormer | 1 | -15/+5 | |
2022-10-05 | Add support for form feeds as html whitespace | Titus Wormer | 1 | -2/+1 | |
2022-10-05 | Add support for rewriting JSX | Titus Wormer | 4 | -2/+1194 | |
2022-10-04 | Refactor to share a test utility | Titus Wormer | 3 | -27/+64 | |
2022-10-03 | Add support for creating a component, using layout | Titus Wormer | 3 | -2/+653 | |
2022-09-30 | Add support for turning hast into swc | Titus Wormer | 5 | -51/+836 | |
2022-09-29 | Add note on future idea | Titus Wormer | 1 | -0/+4 | |
2022-09-28 | Add support for turning mdast to hast | Titus Wormer | 4 | -245/+1986 | |
2022-09-19 | Add support for parsing MDX ESM, expressions | Titus Wormer | 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). |