aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mdx_expression_text.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded testsLibravatar Titus Wormer2022-11-251-2/+2
|
* Remove unneeded `extern crate`sLibravatar Hocdoc2022-11-101-1/+0
| | | | | Closes GH-28. Co-authored-by: Bernhard Berger <bernhardberger3456@gmail.com>
* Refactor to use default trait in testsLibravatar Titus Wormer2022-10-141-9/+6
|
* Rename crate to `markdown`Libravatar Titus Wormer2022-10-131-43/+41
|
* Refactor to use a bunch of `into`Libravatar Titus Wormer2022-10-111-3/+3
|
* Add support for proper positional info in swc treeLibravatar Titus Wormer2022-10-111-2/+3
| | | | | | | | | | * 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 split parse from compile optionsLibravatar Titus Wormer2022-10-061-9/+18
|
* Add support for turning mdast to hastLibravatar Titus Wormer2022-09-281-3/+5
|
* Add support for compiling to mdastLibravatar Titus Wormer2022-09-261-1/+29
| | | | See: <https://github.com/syntax-tree/mdast>.
* Add support for parsing MDX ESM, expressionsLibravatar Titus Wormer2022-09-191-214/+208
| | | | | | | | | | | | | | | | 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).
* Add mdx expression (flow, text)Libravatar Titus Wormer2022-09-091-0/+273