aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_utils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded testsLibravatar Titus Wormer2022-11-259-5077/+150
|
* Remove unneeded `extern crate`sLibravatar Hocdoc2022-11-105-10/+1
| | | | | Closes GH-28. Co-authored-by: Bernhard Berger <bernhardberger3456@gmail.com>
* Add a lot of tests on how mdast, unist workLibravatar Titus Wormer2022-10-131-5/+233
|
* Rename crate to `markdown`Libravatar Titus Wormer2022-10-138-13/+13
|
* Add internals to compile JSX away (wip)Libravatar Titus Wormer2022-10-123-1/+223
|
* Refactor some internals to accept mutable referencesLibravatar Titus Wormer2022-10-112-7/+5
|
* Refactor test utilities to improve namesLibravatar Titus Wormer2022-10-119-157/+221
|
* Refactor to use a bunch of `into`Libravatar Titus Wormer2022-10-112-13/+9
|
* Refactor some hidden internalsLibravatar Titus Wormer2022-10-112-8/+8
|
* Add support for proper positional info in swc treeLibravatar Titus Wormer2022-10-119-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`
* Refactor to improve `to_hast` internalsLibravatar Titus Wormer2022-10-062-828/+624
|
* Refactor to share identifier methodsLibravatar Titus Wormer2022-10-061-15/+5
|
* Add support for form feeds as html whitespaceLibravatar Titus Wormer2022-10-051-2/+1
|
* Add support for rewriting JSXLibravatar Titus Wormer2022-10-054-2/+1194
|
* Refactor to share a test utilityLibravatar Titus Wormer2022-10-043-27/+64
|
* Add support for creating a component, using layoutLibravatar Titus Wormer2022-10-033-2/+653
|
* Add support for turning hast into swcLibravatar Titus Wormer2022-09-305-51/+836
|
* Add note on future ideaLibravatar Titus Wormer2022-09-291-0/+4
|
* Add support for turning mdast to hastLibravatar Titus Wormer2022-09-284-245/+1986
|
* Add support for parsing MDX ESM, expressionsLibravatar Titus Wormer2022-09-191-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).