Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2022-09-19 | Add support for parsing MDX ESM, expressions | Titus Wormer | 1 | -2/+178 | |
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). | |||||
2022-09-12 | Fix whitespace in GFM footnote definition identifiers | Titus Wormer | 1 | -10/+10 | |
* Fix a crash on line endings in footnote definitions * Fix to match spaces and tabs in identifiers to `cmark-gfm` * Fix order of one attribute | |||||
2022-09-09 | Add mdx expression (flow, text) | Titus Wormer | 1 | -0/+18 | |
2022-09-08 | Add support for mdx jsx (flow) | Titus Wormer | 1 | -0/+9 | |
2022-09-07 | Add support for recoverable syntax errors | Titus Wormer | 1 | -29/+74 | |
2022-09-06 | Add initial states for MDX JSX (text) | Titus Wormer | 1 | -0/+29 | |
2022-09-01 | Add support for GFM tagfilter | Titus Wormer | 1 | -0/+47 | |
2022-08-31 | Add support for GFM tables | Titus Wormer | 1 | -0/+13 | |
2022-08-26 | Add support for math (flow) | Titus Wormer | 1 | -1/+13 | |
2022-08-26 | Add support for math (text) | Titus Wormer | 1 | -45/+99 | |
2022-08-25 | Add support for GFM footnotes | Titus Wormer | 1 | -16/+238 | |
2022-08-22 | Add support for GFM task list item | Titus Wormer | 1 | -0/+9 | |
2022-08-22 | Add support for GFM strikethrough | Titus Wormer | 1 | -1/+60 | |
2022-08-19 | Refactor to move more things to `util/` | Titus Wormer | 1 | -2/+0 | |
2022-08-18 | Add support for GFM autolink literals | Titus Wormer | 1 | -0/+21 | |
2022-08-16 | Add `no_std + alloc` | Titus Wormer | 1 | -0/+5 | |
2022-08-16 | Add support for frontmatter | Titus Wormer | 1 | -0/+12 | |
2022-08-15 | Add derive of `Eq` where possible | Titus Wormer | 1 | -1/+1 | |
2022-08-15 | Refactor to move `content` to `construct` | Titus Wormer | 1 | -1/+0 | |
2022-08-15 | Refactor to rename list construct to list item | Titus Wormer | 1 | -3/+3 | |
2022-08-12 | Refactor to improve docs of each function | Titus Wormer | 1 | -1/+1 | |
2022-08-11 | Remove boxes around resolvers | Titus Wormer | 1 | -0/+1 | |
2022-08-11 | Refactor to move some code to `event.rs` | Titus Wormer | 1 | -1/+1 | |
2022-08-11 | Refactor to move some code to `state.rs` | Titus Wormer | 1 | -0/+1 | |
2022-07-29 | Refactor to improve states | Titus Wormer | 1 | -2/+2 | |
* 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` | |||||
2022-07-29 | Refactor to work on bytes (`u8`) | Titus Wormer | 1 | -1/+1 | |
2022-07-28 | Refactor to work on `char`s | Titus Wormer | 1 | -8/+7 | |
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. | |||||
2022-07-19 | Remove unneeded `rust` language flags | Titus Wormer | 1 | -6/+6 | |
2022-07-18 | Change to improve `default_line_ending` api | Titus Wormer | 1 | -4/+4 | |
2022-07-18 | Add support for turning off constructs | Titus Wormer | 1 | -9/+223 | |
2022-07-18 | Refactor to move options to `lib/` | Titus Wormer | 1 | -1/+159 | |
2022-07-07 | Refactor to move token types to `token` | Titus Wormer | 1 | -0/+1 | |
2022-07-05 | Refactor to do some to dos | Titus Wormer | 1 | -2/+2 | |
2022-07-04 | Add support for unicode punctuation | Titus Wormer | 1 | -0/+1 | |
2022-06-21 | Add support for inferring line ending, configurable | Titus Wormer | 1 | -5/+6 | |
* Rename `CompileOptions` to `Options` * Add support for an optional default line ending style * Add support for inferring the used line ending style | |||||
2022-06-13 | Add support for sanitizing urls | Titus Wormer | 1 | -0/+1 | |
* Add support for properly encoding characters in urls * Add support for sanitizing potentially dangerous urls * Add safe defaults, optionally live dangerously | |||||
2022-06-09 | Add basic subtokenization, string content in fenced code | Titus Wormer | 1 | -0/+1 | |