aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-26Fix GFM tables interfering with other constructsLibravatar Titus Wormer1-0/+2
Closes GH-19. Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
2022-10-26Fix container close after unclosed fenced code, w/ eolLibravatar Titus Wormer1-6/+20
Closes GH-16 Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
2022-10-25Fix trailing whitespace around broken dataLibravatar Titus Wormer2-0/+4
Closes GH-13. Closes GH-14.
2022-10-25Fix lists in MDXLibravatar Titus Wormer1-1/+1
Closes GH-11.
2022-10-14Remove some unused code around slicesLibravatar Titus Wormer2-15/+5
2022-10-13Replace some unused code for assertionsLibravatar Titus Wormer2-23/+19
2022-10-13Replace some unused code with assertionsLibravatar Titus Wormer1-8/+10
2022-10-13Remove some unused code in gfm tablesLibravatar Titus Wormer1-27/+7
2022-10-13Remove some unused codeLibravatar Titus Wormer3-25/+19
2022-10-13Refactor to improve coverage of titlesLibravatar Titus Wormer1-10/+6
2022-10-13Add more tests for whitespace in jsx tagsLibravatar Titus Wormer1-10/+2
2022-10-13Add a bunch more tests for frontmatterLibravatar Titus Wormer1-9/+6
2022-10-13Remove unneeded states in `partial_label`Libravatar Titus Wormer1-46/+13
2022-10-13Remove unneeded code from `gfm_autolink_literal`Libravatar Titus Wormer1-91/+9
2022-10-12Refactor to improve some module docsLibravatar Titus Wormer12-22/+24
2022-10-11Refactor to use a bunch of `into`Libravatar Titus Wormer1-2/+2
2022-10-11Add some missing internal docsLibravatar Titus Wormer2-4/+8
2022-10-11Add support for proper positional info in swc treeLibravatar Titus Wormer2-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`
2022-10-06Refactor to share identifier methodsLibravatar Titus Wormer1-24/+26
2022-10-06Add support for HTML 4 character references in JSX attributesLibravatar Titus Wormer1-21/+6
2022-09-28Add support for turning mdast to hastLibravatar Titus Wormer10-28/+24
2022-09-19Add support for parsing MDX ESM, expressionsLibravatar Titus Wormer5-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).
2022-09-14Fix to prefer flow over definitions, setext headingsLibravatar Titus Wormer15-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.
2022-09-12Fix containers piercing into indented codeLibravatar Titus Wormer1-1/+1
2022-09-12Fix gfm email autolink literals overlappingLibravatar Titus Wormer1-13/+13
2022-09-12Fix blank lines in labelsLibravatar Titus Wormer1-1/+2
2022-09-12Fix whitespace in GFM footnote definition identifiersLibravatar Titus Wormer2-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
2022-09-09Add docs for mdx expressionsLibravatar Titus Wormer3-12/+152
2022-09-09Add support for mdx attribute (value) expressionsLibravatar Titus Wormer2-10/+70
2022-09-09Add mdx expression (flow, text)Libravatar Titus Wormer7-4/+242
2022-09-09Add some missing docsLibravatar Titus Wormer1-14/+9
2022-09-09Fix to allow blank lines in mdx jsx (flow)Libravatar Titus Wormer1-44/+22
2022-09-09Refactor to move byte, char info to own fileLibravatar Titus Wormer4-79/+55
2022-09-09Add docs to mdx jsxLibravatar Titus Wormer3-4/+355
2022-09-08Add support for mdx jsx (flow)Libravatar Titus Wormer4-74/+143
2022-09-08Refactor to move jsx parsing to partialLibravatar Titus Wormer3-945/+954
2022-09-08Add tests for mdx jsx (text)Libravatar Titus Wormer1-11/+36
2022-09-07Add support for recoverable syntax errorsLibravatar Titus Wormer2-53/+56
2022-09-07Add support for unicode identifiers in JSXLibravatar Titus Wormer1-24/+95
2022-09-06Add initial states for MDX JSX (text)Libravatar Titus Wormer4-47/+911
2022-09-05Add support for `mailto:`, `xmpp:` protocolsLibravatar Titus Wormer2-12/+54
2022-09-05Fix some todosLibravatar Titus Wormer3-6/+5
2022-09-05Fix to implement GFM autolink literals exactlyLibravatar Titus Wormer3-158/+712
2022-09-05Add support for getting `char`s from bytesLibravatar Titus Wormer1-21/+10
2022-09-01Add support for GFM tagfilterLibravatar Titus Wormer2-2/+2
2022-08-31Add support for GFM tablesLibravatar Titus Wormer8-29/+1077
2022-08-26Add support for math (flow)Libravatar Titus Wormer6-106/+205
2022-08-26Add support for math (text)Libravatar Titus Wormer8-239/+301
2022-08-25Add support for GFM footnotesLibravatar Titus Wormer11-104/+717
2022-08-22Fix lazy paragraph after definitionLibravatar Titus Wormer2-10/+60