Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2022-10-25 | Fix type of `start` on list in mdast | Titus Wormer | 1 | -3/+11 | |
Closes GH-17. Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com> | |||||
2022-10-25 | Fix trailing whitespace around broken data | Titus Wormer | 1 | -0/+18 | |
Closes GH-13. Closes GH-14. | |||||
2022-10-25 | Fix lists in MDX | Titus Wormer | 1 | -0/+6 | |
Closes GH-11. | |||||
2022-10-14 | Refactor to use default trait in tests | Titus Wormer | 42 | -543/+429 | |
2022-10-14 | Add some more tests on mdx and indented code | Titus Wormer | 2 | -0/+38 | |
2022-10-13 | Add test for broken jsx and containers | Titus Wormer | 1 | -4/+13 | |
2022-10-13 | Remove some unused code in gfm tables | Titus Wormer | 1 | -0/+19 | |
2022-10-13 | Add test for raw html w/o `>` after closing tag | Titus Wormer | 1 | -0/+6 | |
2022-10-13 | Add test for mdx and indented code | Titus Wormer | 2 | -0/+38 | |
2022-10-13 | Add test for non-empty blank lines in footnotes | Titus Wormer | 1 | -0/+17 | |
2022-10-13 | Add tests for numeric character references in mdast | Titus Wormer | 1 | -5/+5 | |
2022-10-13 | Fix cr, crlf in code (fenced) for mdast | Titus Wormer | 1 | -0/+28 | |
2022-10-13 | Add a lot of tests on how mdast, unist work | Titus Wormer | 1 | -5/+233 | |
2022-10-13 | Add more tests for whitespace in jsx tags | Titus Wormer | 1 | -0/+72 | |
2022-10-13 | Add a bunch more tests for frontmatter | Titus Wormer | 1 | -0/+54 | |
2022-10-13 | Add another test for setext heading underlines after definitions | Titus Wormer | 1 | -1/+7 | |
2022-10-13 | Rename crate to `markdown` | Titus Wormer | 60 | -2556/+2544 | |
2022-10-12 | Add internals to compile JSX away (wip) | Titus Wormer | 4 | -1/+377 | |
2022-10-11 | Refactor some internals to accept mutable references | Titus Wormer | 4 | -16/+12 | |
2022-10-11 | Refactor test utilities to improve names | Titus Wormer | 13 | -240/+304 | |
2022-10-11 | Refactor to use a bunch of `into` | Titus Wormer | 34 | -203/+193 | |
2022-10-11 | Refactor some hidden internals | Titus Wormer | 2 | -8/+8 | |
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 | |