aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add support for proper positional info in swc treeLibravatar Titus Wormer2022-10-1117-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`
* Refactor to improve `to_hast` internalsLibravatar Titus Wormer2022-10-062-828/+624
|
* Refactor to split parse from compile optionsLibravatar Titus Wormer2022-10-0643-314/+627
|
* Refactor to share identifier methodsLibravatar Titus Wormer2022-10-061-15/+5
|
* Add support for HTML 4 character references in JSX attributesLibravatar Titus Wormer2022-10-061-0/+91
|
* Add support for form feeds as html whitespaceLibravatar Titus Wormer2022-10-051-2/+1
|
* Add support for rewriting JSXLibravatar Titus Wormer2022-10-055-2/+1549
|
* Refactor to share a test utilityLibravatar Titus Wormer2022-10-045-199/+234
|
* Add support for creating a component, using layoutLibravatar Titus Wormer2022-10-035-2/+883
|
* Add support for turning hast into swcLibravatar Titus Wormer2022-09-307-92/+1479
|
* Add note on future ideaLibravatar Titus Wormer2022-09-291-0/+4
|
* Add support for turning mdast to hastLibravatar Titus Wormer2022-09-2846-348/+3718
|
* Add support for compiling to mdastLibravatar Titus Wormer2022-09-2634-38/+1556
| | | | See: <https://github.com/syntax-tree/mdast>.
* Add support for parsing MDX ESM, expressionsLibravatar Titus Wormer2022-09-199-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).
* Fix to prefer flow over definitions, setext headingsLibravatar Titus Wormer2022-09-143-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.
* Fix containers piercing into indented codeLibravatar Titus Wormer2022-09-121-2/+14
|
* Fix gfm email autolink literals overlappingLibravatar Titus Wormer2022-09-121-2/+17
|
* Fix blank lines in labelsLibravatar Titus Wormer2022-09-121-0/+14
|
* Fix whitespace in GFM footnote definition identifiersLibravatar Titus Wormer2022-09-121-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
* Add docs for mdx expressionsLibravatar Titus Wormer2022-09-091-1/+1
|
* Add support for mdx attribute (value) expressionsLibravatar Titus Wormer2022-09-092-170/+167
|
* Add mdx expression (flow, text)Libravatar Titus Wormer2022-09-093-5/+512
|
* Add support for mdx jsx (flow)Libravatar Titus Wormer2022-09-082-0/+154
|
* Add tests for mdx jsx (text)Libravatar Titus Wormer2022-09-081-0/+821
|
* Add support for recoverable syntax errorsLibravatar Titus Wormer2022-09-0740-1289/+1371
|
* Add support for `mailto:`, `xmpp:` protocolsLibravatar Titus Wormer2022-09-051-0/+43
|
* Fix to implement GFM autolink literals exactlyLibravatar Titus Wormer2022-09-051-2/+2440
|
* Add support for GFM tagfilterLibravatar Titus Wormer2022-09-011-0/+121
|
* Add support for GFM tablesLibravatar Titus Wormer2022-08-312-0/+1794
|
* Add support for math (flow)Libravatar Titus Wormer2022-08-262-30/+274
|
* Add support for math (text)Libravatar Titus Wormer2022-08-261-0/+190
|
* Add support for GFM footnotesLibravatar Titus Wormer2022-08-251-0/+1530
|
* Fix lazy paragraph after definitionLibravatar Titus Wormer2022-08-223-0/+30
|
* Add support for GFM task list itemLibravatar Titus Wormer2022-08-221-0/+236
|
* Add support for GFM strikethroughLibravatar Titus Wormer2022-08-221-0/+387
|
* Add support for GFM autolink literalsLibravatar Titus Wormer2022-08-181-0/+256
|
* Add `pretty_assertions` to tests for diffsLibravatar Titus Wormer2022-08-1832-0/+33
|
* Add support for frontmatterLibravatar Titus Wormer2022-08-161-0/+67
|
* Refactor to rename list construct to list itemLibravatar Titus Wormer2022-08-151-1/+1
|
* Add improved container exit injectionLibravatar Titus Wormer2022-08-111-0/+8
|
* Add more tests for definitions and block quotesLibravatar Titus Wormer2022-08-093-15/+21
|
* Add another test for lazy fenced code and block quotesLibravatar Titus Wormer2022-08-091-1/+7
|
* Add some more tests for just line endingsLibravatar Titus Wormer2022-08-091-0/+36
|
* Fix bug on empty heading (atx)Libravatar Titus Wormer2022-08-011-1/+7
|
* Refactor to improve statesLibravatar Titus Wormer2022-07-291-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`
* Refactor to work on `char`sLibravatar Titus Wormer2022-07-281-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.
* Refactor to drastically improve perf around whitespaceLibravatar Titus Wormer2022-07-261-6/+0
|
* Refactor to remove unneeded tuples in every statesLibravatar Titus Wormer2022-07-221-1/+1
|
* Refactor performance around links in subtokenizeLibravatar Titus Wormer2022-07-211-1/+7
|
* Change to improve `default_line_ending` apiLibravatar Titus Wormer2022-07-181-2/+2
|