Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix escape in titles | Titus Wormer | 2023-05-23 | 1 | -1/+1 |
| | |||||
* | Refactor some code | Titus Wormer | 2023-05-23 | 8 | -21/+33 |
| | |||||
* | Remove unneeded branch | Titus Wormer | 2023-05-18 | 1 | -6/+1 |
| | |||||
* | Remove superfluous code | Titus Wormer | 2023-05-13 | 1 | -4/+1 |
| | |||||
* | Fix typo in docs | Titus Wormer | 2023-05-11 | 1 | -1/+3 |
| | |||||
* | Remove unneeded check | Titus Wormer | 2023-05-02 | 1 | -1/+1 |
| | |||||
* | Fix typo in docs | Titus Wormer | 2023-04-22 | 1 | -1/+1 |
| | |||||
* | Fix crash in MDX whitespace | Mick van Gelderen | 2023-04-22 | 1 | -9/+11 |
| | | | | Related-to: GH-26. Closes GH-60. | ||||
* | Fix double setext heading underlines | Titus Wormer | 2022-11-25 | 2 | -4/+3 |
| | | | | Related-to: GH-22. | ||||
* | Refactor code-style for Rust 1.65 | Hocdoc | 2022-11-10 | 4 | -5/+5 |
| | | | | | | Closes GH-29. Reviewed-by: Titus Wormer <tituswormer@gmail.com> Co-authored-by: Bernhard Berger <bernhardberger3456@gmail.com> | ||||
* | Fix attention starting and ending in different links | Titus Wormer | 2022-10-29 | 1 | -11/+12 |
| | | | | | | | | | | | | | | | | | | | | | | Example: ```markdown [*]() [*]() ``` There was already code for: ```markdown [*]() x*. *x [*](). ``` But that wasn’t correct for attention at the same depth but in different places. Closes GH-21. Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com> | ||||
* | Refactor to always resolve edit maps | Titus Wormer | 2022-10-29 | 8 | -8/+7 |
| | | | | This will probably catch some confusing bugs, such as ad1b3e6. | ||||
* | Fix GFM autolink literals that end in in GFM table pipes | Titus Wormer | 2022-10-28 | 1 | -2/+3 |
| | | | | | | Closes GH-20. Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com> | ||||
* | Fix GFM tables to require a non-pipe in header row | Titus Wormer | 2022-10-28 | 1 | -7/+21 |
| | | | | Related-to: GH-20. | ||||
* | Fix GFM tables interfering with other constructs | Titus Wormer | 2022-10-26 | 1 | -0/+2 |
| | | | | | | Closes GH-19. Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com> | ||||
* | Fix container close after unclosed fenced code, w/ eol | Titus Wormer | 2022-10-26 | 1 | -6/+20 |
| | | | | | | Closes GH-16 Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com> | ||||
* | Fix trailing whitespace around broken data | Titus Wormer | 2022-10-25 | 2 | -0/+4 |
| | | | | | Closes GH-13. Closes GH-14. | ||||
* | Fix lists in MDX | Titus Wormer | 2022-10-25 | 1 | -1/+1 |
| | | | | Closes GH-11. | ||||
* | Remove some unused code around slices | Titus Wormer | 2022-10-14 | 2 | -15/+5 |
| | |||||
* | Replace some unused code for assertions | Titus Wormer | 2022-10-13 | 2 | -23/+19 |
| | |||||
* | Replace some unused code with assertions | Titus Wormer | 2022-10-13 | 1 | -8/+10 |
| | |||||
* | Remove some unused code in gfm tables | Titus Wormer | 2022-10-13 | 1 | -27/+7 |
| | |||||
* | Remove some unused code | Titus Wormer | 2022-10-13 | 3 | -25/+19 |
| | |||||
* | Refactor to improve coverage of titles | Titus Wormer | 2022-10-13 | 1 | -10/+6 |
| | |||||
* | Add more tests for whitespace in jsx tags | Titus Wormer | 2022-10-13 | 1 | -10/+2 |
| | |||||
* | Add a bunch more tests for frontmatter | Titus Wormer | 2022-10-13 | 1 | -9/+6 |
| | |||||
* | Remove unneeded states in `partial_label` | Titus Wormer | 2022-10-13 | 1 | -46/+13 |
| | |||||
* | Remove unneeded code from `gfm_autolink_literal` | Titus Wormer | 2022-10-13 | 1 | -91/+9 |
| | |||||
* | Refactor to improve some module docs | Titus Wormer | 2022-10-12 | 12 | -22/+24 |
| | |||||
* | Refactor to use a bunch of `into` | Titus Wormer | 2022-10-11 | 1 | -2/+2 |
| | |||||
* | Add some missing internal docs | Titus Wormer | 2022-10-11 | 2 | -4/+8 |
| | |||||
* | Add support for proper positional info in swc tree | Titus Wormer | 2022-10-11 | 2 | -15/+28 |
| | | | | | | | | | | * 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 methods | Titus Wormer | 2022-10-06 | 1 | -24/+26 |
| | |||||
* | Add support for HTML 4 character references in JSX attributes | Titus Wormer | 2022-10-06 | 1 | -21/+6 |
| | |||||
* | Add support for turning mdast to hast | Titus Wormer | 2022-09-28 | 10 | -28/+24 |
| | |||||
* | Add support for parsing MDX ESM, expressions | Titus Wormer | 2022-09-19 | 5 | -21/+314 |
| | | | | | | | | | | | | | | | | 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). | ||||
* | Fix to prefer flow over definitions, setext headings | Titus Wormer | 2022-09-14 | 15 | -211/+436 |
| | | | | | | | | | | | | | | 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. | ||||
* | Fix containers piercing into indented code | Titus Wormer | 2022-09-12 | 1 | -1/+1 |
| | |||||
* | Fix gfm email autolink literals overlapping | Titus Wormer | 2022-09-12 | 1 | -13/+13 |
| | |||||
* | Fix blank lines in labels | Titus Wormer | 2022-09-12 | 1 | -1/+2 |
| | |||||
* | Fix whitespace in GFM footnote definition identifiers | Titus Wormer | 2022-09-12 | 2 | -19/+106 |
| | | | | | | * 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 | ||||
* | Add docs for mdx expressions | Titus Wormer | 2022-09-09 | 3 | -12/+152 |
| | |||||
* | Add support for mdx attribute (value) expressions | Titus Wormer | 2022-09-09 | 2 | -10/+70 |
| | |||||
* | Add mdx expression (flow, text) | Titus Wormer | 2022-09-09 | 7 | -4/+242 |
| | |||||
* | Add some missing docs | Titus Wormer | 2022-09-09 | 1 | -14/+9 |
| | |||||
* | Fix to allow blank lines in mdx jsx (flow) | Titus Wormer | 2022-09-09 | 1 | -44/+22 |
| | |||||
* | Refactor to move byte, char info to own file | Titus Wormer | 2022-09-09 | 4 | -79/+55 |
| | |||||
* | Add docs to mdx jsx | Titus Wormer | 2022-09-09 | 3 | -4/+355 |
| | |||||
* | Add support for mdx jsx (flow) | Titus Wormer | 2022-09-08 | 4 | -74/+143 |
| | |||||
* | Refactor to move jsx parsing to partial | Titus Wormer | 2022-09-08 | 3 | -945/+954 |
| |