aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix GFM autolink literals that end in in GFM table pipesLibravatar Titus Wormer2022-10-281-0/+6
| | | | | | Closes GH-20. Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
* Fix GFM tables to require a non-pipe in header rowLibravatar Titus Wormer2022-10-281-0/+18
| | | | Related-to: GH-20.
* Fix GFM autolink literals after tabsLibravatar Titus Wormer2022-10-261-0/+24
| | | | | | Closes GH-18. Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
* Fix GFM tables interfering with other constructsLibravatar Titus Wormer2022-10-261-0/+6
| | | | | | Closes GH-19. Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
* Fix container close after unclosed fenced code, w/ eolLibravatar Titus Wormer2022-10-261-0/+12
| | | | | | Closes GH-16 Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
* Fix type of `start` on list in mdastLibravatar Titus Wormer2022-10-251-3/+11
| | | | | | Closes GH-17. Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
* Fix trailing whitespace around broken dataLibravatar Titus Wormer2022-10-251-0/+18
| | | | | Closes GH-13. Closes GH-14.
* Fix lists in MDXLibravatar Titus Wormer2022-10-251-0/+6
| | | | Closes GH-11.
* Refactor to use default trait in testsLibravatar Titus Wormer2022-10-1442-543/+429
|
* Add some more tests on mdx and indented codeLibravatar Titus Wormer2022-10-142-0/+38
|
* Add test for broken jsx and containersLibravatar Titus Wormer2022-10-131-4/+13
|
* Remove some unused code in gfm tablesLibravatar Titus Wormer2022-10-131-0/+19
|
* Add test for raw html w/o `>` after closing tagLibravatar Titus Wormer2022-10-131-0/+6
|
* Add test for mdx and indented codeLibravatar Titus Wormer2022-10-132-0/+38
|
* Add test for non-empty blank lines in footnotesLibravatar Titus Wormer2022-10-131-0/+17
|
* Add tests for numeric character references in mdastLibravatar Titus Wormer2022-10-131-5/+5
|
* Fix cr, crlf in code (fenced) for mdastLibravatar Titus Wormer2022-10-131-0/+28
|
* Add a lot of tests on how mdast, unist workLibravatar Titus Wormer2022-10-131-5/+233
|
* Add more tests for whitespace in jsx tagsLibravatar Titus Wormer2022-10-131-0/+72
|
* Add a bunch more tests for frontmatterLibravatar Titus Wormer2022-10-131-0/+54
|
* Add another test for setext heading underlines after definitionsLibravatar Titus Wormer2022-10-131-1/+7
|
* Rename crate to `markdown`Libravatar Titus Wormer2022-10-1360-2556/+2544
|
* Add internals to compile JSX away (wip)Libravatar Titus Wormer2022-10-124-1/+377
|
* Refactor some internals to accept mutable referencesLibravatar Titus Wormer2022-10-114-16/+12
|
* Refactor test utilities to improve namesLibravatar Titus Wormer2022-10-1113-240/+304
|
* Refactor to use a bunch of `into`Libravatar Titus Wormer2022-10-1134-203/+193
|
* Refactor some hidden internalsLibravatar Titus Wormer2022-10-112-8/+8
|
* 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
|