aboutsummaryrefslogtreecommitdiffstats
path: root/src/util (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix dead links in docsLibravatar Titus Wormer2022-10-251-2/+4
|
* Regenerate unicode punctuationLibravatar Christian Murphy2022-10-251-1/+24
| | | | | Closes GH-15. Reviewed-by: Titus Wormer <tituswormer@gmail.com>
* Remove `must_use` if tarpaulin doesn’t understand themLibravatar Titus Wormer2022-10-143-0/+262
| | | | | Also moves some code to separate files, in the hopes that tarpaulin understands them.
* Refactor slice algorithms some moreLibravatar Titus Wormer2022-10-141-24/+13
|
* Attempt to fix broken tarpaulinLibravatar Titus Wormer2022-10-141-0/+2
|
* Refactor some code to improve coverageLibravatar Titus Wormer2022-10-141-14/+10
|
* Remove some unused code around slicesLibravatar Titus Wormer2022-10-141-56/+8
|
* Fix positional info of cr+lf in mdxLibravatar Titus Wormer2022-10-141-0/+88
|
* Refactor some code to improve coverageLibravatar Titus Wormer2022-10-131-2/+2
|
* Add some unit tests for internal character functionsLibravatar Titus Wormer2022-10-131-15/+102
|
* Rename crate to `markdown`Libravatar Titus Wormer2022-10-136-10/+10
|
* Refactor to use a bunch of `into`Libravatar Titus Wormer2022-10-113-17/+10
|
* Refactor some hidden internalsLibravatar Titus Wormer2022-10-112-2/+4
|
* Add some missing internal docsLibravatar Titus Wormer2022-10-112-14/+25
|
* Add support for proper positional info in swc treeLibravatar Titus Wormer2022-10-113-49/+144
| | | | | | | | | | * 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-062-0/+16
|
* Add support for HTML 4 character references in JSX attributesLibravatar Titus Wormer2022-10-064-94/+475
|
* Add support for turning mdast to hastLibravatar Titus Wormer2022-09-281-0/+1
|
* Add support for compiling to mdastLibravatar Titus Wormer2022-09-263-2/+195
| | | | See: <https://github.com/syntax-tree/mdast>.
* Add support for parsing MDX ESM, expressionsLibravatar Titus Wormer2022-09-192-0/+71
| | | | | | | | | | | | | | | | 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-094-119/+167
|
* Add initial states for MDX JSX (text)Libravatar Titus Wormer2022-09-061-1/+24
|
* Fix some todosLibravatar Titus Wormer2022-09-051-0/+7
|
* Add support for getting `char`s from bytesLibravatar Titus Wormer2022-09-051-0/+22
|
* Add support for GFM tagfilterLibravatar Titus Wormer2022-09-014-29/+154
|
* Add support for math (flow)Libravatar Titus Wormer2022-08-261-4/+4
|
* Add support for GFM task list itemLibravatar Titus Wormer2022-08-221-2/+10
|
* Refactor to move more things to `util/`Libravatar Titus Wormer2022-08-196-3/+3292
|
* Add support for GFM autolink literalsLibravatar Titus Wormer2022-08-182-0/+73
|
* Add `no_std + alloc`Libravatar Titus Wormer2022-08-166-1/+13
|
* Refactor to proof docs, grammarsLibravatar Titus Wormer2022-08-158-33/+39
|
* Refactor to improve docs of each functionLibravatar Titus Wormer2022-08-123-20/+18
|
* Refactor to move some code to `event.rs`Libravatar Titus Wormer2022-08-113-35/+25
|
* Add missing docs, refactor some codeLibravatar Titus Wormer2022-08-011-13/+26
|
* Refactor to pass more `&str`s, work on more bytesLibravatar Titus Wormer2022-08-011-0/+5
|
* Refactor to improve statesLibravatar Titus Wormer2022-07-295-76/+91
| | | | | | | | | | | | * Remove custom kind wrappers, use plain bytes instead * Remove `Into`s, use the explicit expected types instead * Refactor to use `slice.as_str` in most places * Remove unneeded unique check before adding a definition * Use a shared CDATA prefix in constants * Inline byte checks into matches * Pass bytes back from parser instead of whole parse state * Refactor to work more often on bytes * Rename custom `size` to `len`
* Refactor to work on bytes (`u8`)Libravatar Titus Wormer2022-07-291-26/+18
|
* Refactor to use `debug_assert`Libravatar Titus Wormer2022-07-281-1/+1
|
* Refactor to work on `char`sLibravatar Titus Wormer2022-07-286-188/+167
| | | | | | | | | | | | | | | 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.
* Refactor to use a single shared edit mapLibravatar Titus Wormer2022-07-221-9/+6
|
* Refactor to remove unneeded tuples in every statesLibravatar Titus Wormer2022-07-222-2/+2
|
* Refactor performance around links in subtokenizeLibravatar Titus Wormer2022-07-211-28/+35
|
* Refactor to move `index` field to `point`Libravatar Titus Wormer2022-07-211-2/+2
|
* Refactor to move some event fields to `link`Libravatar Titus Wormer2022-07-211-3/+5
|
* Refactor to improve allocation around stringsLibravatar Titus Wormer2022-07-204-82/+65
|
* Refactor to use less vecs for eventsLibravatar Titus Wormer2022-07-201-42/+28
|
* Refactor to remove cloning in `edit_map`Libravatar Titus Wormer2022-07-191-19/+25
|
* Use `edit_map` in `subtokenize`Libravatar Titus Wormer2022-07-191-14/+1
|
* Remove another unneeded `HashMap`Libravatar Titus Wormer2022-07-191-40/+38
|
* Fix dead link in docsLibravatar Titus Wormer2022-07-181-3/+3
|