aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix double setext heading underlinesLibravatar Titus Wormer2022-11-252-4/+3
| | | | Related-to: GH-22.
* Refactor code-style for Rust 1.65Libravatar Hocdoc2022-11-104-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 linksLibravatar Titus Wormer2022-10-291-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 mapsLibravatar Titus Wormer2022-10-298-8/+7
| | | | This will probably catch some confusing bugs, such as ad1b3e6.
* Fix GFM autolink literals that end in in GFM table pipesLibravatar Titus Wormer2022-10-281-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 rowLibravatar Titus Wormer2022-10-281-7/+21
| | | | Related-to: GH-20.
* Fix GFM tables interfering with other constructsLibravatar Titus Wormer2022-10-261-0/+2
| | | | | | 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-6/+20
| | | | | | Closes GH-16 Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
* Fix trailing whitespace around broken dataLibravatar Titus Wormer2022-10-252-0/+4
| | | | | Closes GH-13. Closes GH-14.
* Fix lists in MDXLibravatar Titus Wormer2022-10-251-1/+1
| | | | Closes GH-11.
* Remove some unused code around slicesLibravatar Titus Wormer2022-10-142-15/+5
|
* Replace some unused code for assertionsLibravatar Titus Wormer2022-10-132-23/+19
|
* Replace some unused code with assertionsLibravatar Titus Wormer2022-10-131-8/+10
|
* Remove some unused code in gfm tablesLibravatar Titus Wormer2022-10-131-27/+7
|
* Remove some unused codeLibravatar Titus Wormer2022-10-133-25/+19
|
* Refactor to improve coverage of titlesLibravatar Titus Wormer2022-10-131-10/+6
|
* Add more tests for whitespace in jsx tagsLibravatar Titus Wormer2022-10-131-10/+2
|
* Add a bunch more tests for frontmatterLibravatar Titus Wormer2022-10-131-9/+6
|
* Remove unneeded states in `partial_label`Libravatar Titus Wormer2022-10-131-46/+13
|
* Remove unneeded code from `gfm_autolink_literal`Libravatar Titus Wormer2022-10-131-91/+9
|
* Refactor to improve some module docsLibravatar Titus Wormer2022-10-1212-22/+24
|
* Refactor to use a bunch of `into`Libravatar Titus Wormer2022-10-111-2/+2
|
* Add some missing internal docsLibravatar Titus Wormer2022-10-112-4/+8
|
* Add support for proper positional info in swc treeLibravatar Titus Wormer2022-10-112-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 methodsLibravatar Titus Wormer2022-10-061-24/+26
|
* Add support for HTML 4 character references in JSX attributesLibravatar Titus Wormer2022-10-061-21/+6
|
* Add support for turning mdast to hastLibravatar Titus Wormer2022-09-2810-28/+24
|
* Add support for parsing MDX ESM, expressionsLibravatar Titus Wormer2022-09-195-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 headingsLibravatar Titus Wormer2022-09-1415-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 codeLibravatar Titus Wormer2022-09-121-1/+1
|
* Fix gfm email autolink literals overlappingLibravatar Titus Wormer2022-09-121-13/+13
|
* Fix blank lines in labelsLibravatar Titus Wormer2022-09-121-1/+2
|
* Fix whitespace in GFM footnote definition identifiersLibravatar Titus Wormer2022-09-122-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 expressionsLibravatar Titus Wormer2022-09-093-12/+152
|
* Add support for mdx attribute (value) expressionsLibravatar Titus Wormer2022-09-092-10/+70
|
* Add mdx expression (flow, text)Libravatar Titus Wormer2022-09-097-4/+242
|
* Add some missing docsLibravatar Titus Wormer2022-09-091-14/+9
|
* Fix to allow blank lines in mdx jsx (flow)Libravatar Titus Wormer2022-09-091-44/+22
|
* Refactor to move byte, char info to own fileLibravatar Titus Wormer2022-09-094-79/+55
|
* Add docs to mdx jsxLibravatar Titus Wormer2022-09-093-4/+355
|
* Add support for mdx jsx (flow)Libravatar Titus Wormer2022-09-084-74/+143
|
* Refactor to move jsx parsing to partialLibravatar Titus Wormer2022-09-083-945/+954
|
* Add tests for mdx jsx (text)Libravatar Titus Wormer2022-09-081-11/+36
|
* Add support for recoverable syntax errorsLibravatar Titus Wormer2022-09-072-53/+56
|
* Add support for unicode identifiers in JSXLibravatar Titus Wormer2022-09-071-24/+95
|
* Add initial states for MDX JSX (text)Libravatar Titus Wormer2022-09-064-47/+911
|
* Add support for `mailto:`, `xmpp:` protocolsLibravatar Titus Wormer2022-09-052-12/+54
|
* Fix some todosLibravatar Titus Wormer2022-09-053-6/+5
|
* Fix to implement GFM autolink literals exactlyLibravatar Titus Wormer2022-09-053-158/+712
|
* Add support for getting `char`s from bytesLibravatar Titus Wormer2022-09-051-21/+10
|