aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2022-08-22Add support for GFM task list itemLibravatar Titus Wormer3-1/+167
2022-08-22Add support for GFM strikethroughLibravatar Titus Wormer21-112/+169
2022-08-19Refactor to move more things to `util/`Libravatar Titus Wormer15-32/+37
2022-08-18Add support for GFM autolink literalsLibravatar Titus Wormer6-75/+407
2022-08-16Add `no_std + alloc`Libravatar Titus Wormer9-0/+9
2022-08-16Add support for frontmatterLibravatar Titus Wormer6-16/+327
2022-08-16Update some last docs, bnf grammarsLibravatar Titus Wormer17-111/+226
2022-08-15Refactor to proof docs, grammarsLibravatar Titus Wormer21-241/+419
2022-08-15Refactor to move `content` to `construct`Libravatar Titus Wormer32-38/+1037
2022-08-15Refactor to rename list construct to list itemLibravatar Titus Wormer4-27/+27
2022-08-15Refactor paragraph, data resolversLibravatar Titus Wormer2-44/+50
2022-08-15Refactor to solve some clippy issuesLibravatar Titus Wormer1-51/+50
2022-08-12Refactor to attempt less if never neededLibravatar Titus Wormer14-293/+367
2022-08-12Refactor to improve enteringLibravatar Titus Wormer9-58/+113