Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2022-10-11 | Add some missing internal docs | Titus Wormer | 1 | -3/+7 | |
2022-09-19 | Add support for parsing MDX ESM, expressions | Titus Wormer | 1 | -0/+2 | |
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-14 | Fix to prefer flow over definitions, setext headings | Titus Wormer | 1 | -1/+3 | |
An undocumented part of CommonMark is how to deal with things in definition labels or definition titles (which both can span multiple lines). Can flow (or containers?) interrupt them? They can according to the `cmark` reference parser, so this was implemented here. This adds a new `Content` content type, which houses zero or more definitions, and then zero-or-one paragraphs. Content can be followed by a setext heading underline, which either turns into a setext heading when the content ends in a paragraph, or turns into the start of the following paragraph when it is followed by content that starts with a paragraph, or turns into a stray paragraph. | |||||
2022-09-09 | Add mdx expression (flow, text) | Titus Wormer | 1 | -1/+7 | |
2022-09-08 | Add support for mdx jsx (flow) | Titus Wormer | 1 | -1/+3 | |
2022-09-08 | Refactor to move jsx parsing to partial | Titus Wormer | 1 | -0/+2 | |
2022-09-06 | Add initial states for MDX JSX (text) | Titus Wormer | 1 | -6/+6 | |
2022-08-31 | Add support for GFM tables | Titus Wormer | 1 | -0/+2 | |
2022-08-26 | Add support for math (flow) | Titus Wormer | 1 | -3/+3 | |
2022-08-26 | Add support for math (text) | Titus Wormer | 1 | -2/+4 | |
2022-08-25 | Add support for GFM footnotes | Titus Wormer | 1 | -0/+5 | |
2022-08-22 | Add support for GFM task list item | Titus Wormer | 1 | -0/+1 | |
2022-08-18 | Add support for GFM autolink literals | Titus Wormer | 1 | -2/+7 | |
2022-08-16 | Add support for frontmatter | Titus Wormer | 1 | -0/+2 | |
2022-08-16 | Update some last docs, bnf grammars | Titus Wormer | 1 | -8/+13 | |
2022-08-15 | Refactor to proof docs, grammars | Titus Wormer | 1 | -13/+69 | |
2022-08-15 | Refactor to move `content` to `construct` | Titus Wormer | 1 | -0/+4 | |
2022-08-15 | Refactor to rename list construct to list item | Titus Wormer | 1 | -2/+2 | |
2022-08-11 | Refactor to move `space_or_tab_eol` to own file | Titus Wormer | 1 | -0/+2 | |
2022-08-01 | Add missing docs, refactor some code | Titus Wormer | 1 | -0/+1 | |
2022-07-29 | Refactor to work on bytes (`u8`) | Titus Wormer | 1 | -0/+1 | |
2022-07-26 | Refactor to drastically improve perf around whitespace | Titus Wormer | 1 | -2/+3 | |
2022-07-12 | Add initial support for lists | Titus Wormer | 1 | -1/+3 | |
2022-07-11 | Add support for lazy lines | Titus Wormer | 1 | -0/+1 | |
2022-07-07 | Add docs to block quote | Titus Wormer | 1 | -1/+1 | |
2022-07-07 | Add basic support for block quotes | Titus Wormer | 1 | -0/+1 | |
2022-07-04 | Add support for attention (emphasis, strong) | Titus Wormer | 1 | -1/+2 | |
2022-06-30 | Add support for trimming whitespace around string, text | Titus Wormer | 1 | -0/+2 | |
This commit introduces trimming initial and final whitespace around the whole string or text, or around line endings inside that string or text. * Add `register_resolver_before`, to run resolvers earlier than others, used for labels * Add resolver to merge `data` events, which are the most frequent token that occurs, and can happen adjacently. In `micromark-js` this sped up parsing a lot * Fix a bug where a virtual space was not seen as an okay event * Refactor to enable all turned off whitespace tests | |||||
2022-06-24 | Add link, images (resource) | Titus Wormer | 1 | -5/+6 | |
This is still some messy code that needs cleaning up, but it adds support for links and images, of the resource kind (`[a](b)`). References (`[a][b]`) are parsed and will soon be supported, but need matching. * Fix bug to pad percent-encoded bytes when normalizing urls * Fix bug with escapes counting as balancing in destination * Add `space_or_tab_one_line_ending`, to parse whitespace including up to one line ending (but not a blank line) * Add `ParserState` to share codes, definitions, etc | |||||
2022-06-21 | Make data a construct | Titus Wormer | 1 | -5/+15 | |
2022-06-20 | Add improved whitespace handling | Titus Wormer | 1 | -1/+1 | |
* add several helpers for parsing betwen x and y `space_or_tab`s * use those helpers in a bunch of places * move initial indent parsing to flow constructs themselves | |||||
2022-06-20 | Add paragraph | Titus Wormer | 1 | -1/+2 | |
2022-06-20 | Remove unneeded `content` content type | Titus Wormer | 1 | -1/+0 | |
2022-06-20 | Add docs to destination, label, title | Titus Wormer | 1 | -1/+1 | |
2022-06-17 | Add support for definitions | Titus Wormer | 1 | -2/+6 | |
* Add definitions * Add partials for label, destination, title * Add `go`, to attempt something, and do something else on `ok` | |||||
2022-06-16 | Add heading (setext) | Titus Wormer | 1 | -1/+2 | |
2022-06-16 | Add support for hard break (trailing) | Titus Wormer | 1 | -1/+3 | |
2022-06-16 | Add support for hard break escape | Titus Wormer | 1 | -1/+2 | |
2022-06-15 | Add code (text) | Titus Wormer | 1 | -1/+2 | |
2022-06-14 | Reorganize to split util | Titus Wormer | 1 | -1/+0 | |
2022-06-14 | Add docs on constructs, bnf | Titus Wormer | 1 | -0/+54 | |
2022-06-13 | Add basic html (text) | Titus Wormer | 1 | -0/+1 | |
* Add all states for html (text) * Fix to link paragraph tokens together * Add note about uncovered bug where linking paragraph tokens together doesn’t work 😅 | |||||
2022-06-13 | Add autolinks | Titus Wormer | 1 | -0/+1 | |