Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2022-10-11 | Add support for proper positional info in swc tree | Titus Wormer | 17 | -446/+884 | |
* 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` | |||||
2022-10-06 | Refactor to improve `to_hast` internals | Titus Wormer | 2 | -828/+624 | |
2022-10-06 | Refactor to split parse from compile options | Titus Wormer | 43 | -314/+627 | |
2022-10-06 | Refactor to share identifier methods | Titus Wormer | 1 | -15/+5 | |
2022-10-06 | Add support for HTML 4 character references in JSX attributes | Titus Wormer | 1 | -0/+91 | |
2022-10-05 | Add support for form feeds as html whitespace | Titus Wormer | 1 | -2/+1 | |
2022-10-05 | Add support for rewriting JSX | Titus Wormer | 5 | -2/+1549 | |
2022-10-04 | Refactor to share a test utility | Titus Wormer | 5 | -199/+234 | |
2022-10-03 | Add support for creating a component, using layout | Titus Wormer | 5 | -2/+883 | |
2022-09-30 | Add support for turning hast into swc | Titus Wormer | 7 | -92/+1479 | |
2022-09-29 | Add note on future idea | Titus Wormer | 1 | -0/+4 | |
2022-09-28 | Add support for turning mdast to hast | Titus Wormer | 46 | -348/+3718 | |
2022-09-26 | Add support for compiling to mdast | Titus Wormer | 34 | -38/+1556 | |
See: <https://github.com/syntax-tree/mdast>. | |||||
2022-09-19 | Add support for parsing MDX ESM, expressions | Titus Wormer | 9 | -417/+941 | |
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 | 3 | -1/+43 | |
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-12 | Fix containers piercing into indented code | Titus Wormer | 1 | -2/+14 | |
2022-09-12 | Fix gfm email autolink literals overlapping | Titus Wormer | 1 | -2/+17 | |
2022-09-12 | Fix blank lines in labels | Titus Wormer | 1 | -0/+14 | |
2022-09-12 | Fix whitespace in GFM footnote definition identifiers | Titus Wormer | 1 | -109/+177 | |
* 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 docs for mdx expressions | Titus Wormer | 1 | -1/+1 | |
2022-09-09 | Add support for mdx attribute (value) expressions | Titus Wormer | 2 | -170/+167 | |
2022-09-09 | Add mdx expression (flow, text) | Titus Wormer | 3 | -5/+512 | |
2022-09-08 | Add support for mdx jsx (flow) | Titus Wormer | 2 | -0/+154 | |
2022-09-08 | Add tests for mdx jsx (text) | Titus Wormer | 1 | -0/+821 | |
2022-09-07 | Add support for recoverable syntax errors | Titus Wormer | 40 | -1289/+1371 | |
2022-09-05 | Add support for `mailto:`, `xmpp:` protocols | Titus Wormer | 1 | -0/+43 | |
2022-09-05 | Fix to implement GFM autolink literals exactly | Titus Wormer | 1 | -2/+2440 | |
2022-09-01 | Add support for GFM tagfilter | Titus Wormer | 1 | -0/+121 | |
2022-08-31 | Add support for GFM tables | Titus Wormer | 2 | -0/+1794 | |
2022-08-26 | Add support for math (flow) | Titus Wormer | 2 | -30/+274 | |
2022-08-26 | Add support for math (text) | Titus Wormer | 1 | -0/+190 | |
2022-08-25 | Add support for GFM footnotes | Titus Wormer | 1 | -0/+1530 | |
2022-08-22 | Fix lazy paragraph after definition | Titus Wormer | 3 | -0/+30 | |
2022-08-22 | Add support for GFM task list item | Titus Wormer | 1 | -0/+236 | |
2022-08-22 | Add support for GFM strikethrough | Titus Wormer | 1 | -0/+387 | |
2022-08-18 | Add support for GFM autolink literals | Titus Wormer | 1 | -0/+256 | |
2022-08-18 | Add `pretty_assertions` to tests for diffs | Titus Wormer | 32 | -0/+33 | |
2022-08-16 | Add support for frontmatter | Titus Wormer | 1 | -0/+67 | |
2022-08-15 | Refactor to rename list construct to list item | Titus Wormer | 1 | -1/+1 | |
2022-08-11 | Add improved container exit injection | Titus Wormer | 1 | -0/+8 | |
2022-08-09 | Add more tests for definitions and block quotes | Titus Wormer | 3 | -15/+21 | |
2022-08-09 | Add another test for lazy fenced code and block quotes | Titus Wormer | 1 | -1/+7 | |
2022-08-09 | Add some more tests for just line endings | Titus Wormer | 1 | -0/+36 | |
2022-08-01 | Fix bug on empty heading (atx) | Titus Wormer | 1 | -1/+7 | |
2022-07-29 | Refactor to improve states | Titus Wormer | 1 | -0/+6 | |
* 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-28 | Refactor to work on `char`s | Titus Wormer | 1 | -6/+0 | |
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-26 | Refactor to drastically improve perf around whitespace | Titus Wormer | 1 | -6/+0 | |
2022-07-22 | Refactor to remove unneeded tuples in every states | Titus Wormer | 1 | -1/+1 | |
2022-07-21 | Refactor performance around links in subtokenize | Titus Wormer | 1 | -1/+7 | |
2022-07-18 | Change to improve `default_line_ending` api | Titus Wormer | 1 | -2/+2 | |