aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/mod.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove `must_use` if tarpaulin doesn’t understand themLibravatar Titus Wormer2022-10-141-0/+2
| | | | | Also moves some code to separate files, in the hopes that tarpaulin understands them.
* Add support for proper positional info in swc treeLibravatar Titus Wormer2022-10-111-0/+1
| | | | | | | | | | * 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 share identifier methodsLibravatar Titus Wormer2022-10-061-0/+1
|
* Add support for HTML 4 character references in JSX attributesLibravatar Titus Wormer2022-10-061-1/+1
|
* Add support for compiling to mdastLibravatar Titus Wormer2022-09-261-0/+1
| | | | See: <https://github.com/syntax-tree/mdast>.
* Add support for parsing MDX ESM, expressionsLibravatar Titus Wormer2022-09-191-0/+1
| | | | | | | | | | | | | | | | 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).
* Refactor to move byte, char info to own fileLibravatar Titus Wormer2022-09-091-1/+1
|
* Add support for GFM tagfilterLibravatar Titus Wormer2022-09-011-0/+1
|
* Refactor to move more things to `util/`Libravatar Titus Wormer2022-08-191-0/+2
|
* Add support for GFM autolink literalsLibravatar Titus Wormer2022-08-181-0/+1
|
* Refactor to proof docs, grammarsLibravatar Titus Wormer2022-08-151-1/+1
|
* Refactor to work on `char`sLibravatar Titus Wormer2022-07-281-2/+1
| | | | | | | | | | | | | | | Previously, a custom char implementation was used. This was easier to work with, as sometimes “virtual” characters are injected, or characters are ignored. This replaces that with working on actual `char`s. In the hope of in the future working on `u8`s, even. This simplifies the state machine somewhat, as only `\n` is fed, regardless of whether it was a CRLF, CR, or LF. It also feeds `' '` instead of virtual spaces. The BOM, if present, is now available as a `ByteOrderMark` event.
* Add basic support for block quotesLibravatar Titus Wormer2022-07-071-0/+1
|
* Refactor code styleLibravatar Titus Wormer2022-07-051-0/+1
|
* Fix jumps in `edit_map`Libravatar Titus Wormer2022-06-281-0/+1
| | | | | | | | | * Use resolve more often (e.g., heading (atx, setext)) * Fix to link whole phrasing (e.g., one big chunk of text in heading (atx, setext), titles, labels) * Replace `ChunkText`, `ChunkString`, with `event.content_type: Option<ContentType>` * Refactor to externalize `edit_map` from `label`
* Add support for normalizing identifiersLibravatar Titus Wormer2022-06-221-0/+1
|
* Add docs for `subtokenize`Libravatar Titus Wormer2022-06-211-1/+0
|
* Add support for line endings in stringLibravatar Titus Wormer2022-06-201-0/+1
|
* Reorganize to split utilLibravatar Titus Wormer2022-06-141-0/+6