aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-06Add support for HTML 4 character references in JSX attributesLibravatar Titus Wormer7-135/+493
2022-09-30Add support for turning hast into swcLibravatar Titus Wormer1-7/+0
2022-09-29Add inline clippy configLibravatar Titus Wormer1-0/+3
2022-09-28Add support for turning mdast to hastLibravatar Titus Wormer16-117/+130
2022-09-26Add support for compiling to mdastLibravatar Titus Wormer7-546/+2486
See: <https://github.com/syntax-tree/mdast>.
2022-09-19Add structs, enums for `mdast`Libravatar Titus Wormer4-14/+1128
2022-09-19Add support for parsing MDX ESM, expressionsLibravatar Titus Wormer12-27/+628
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 Wormer22-353/+680
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 Wormer2-2/+2
2022-09-12Fix gfm email autolink literals overlappingLibravatar Titus Wormer2-14/+14
2022-09-12Fix blank lines in labelsLibravatar Titus Wormer1-1/+2
2022-09-12Fix whitespace in GFM footnote definition identifiersLibravatar Titus Wormer5-33/+126
* 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 Wormer4-30/+293
2022-09-09Add support for mdx attribute (value) expressionsLibravatar Titus Wormer4-10/+81
2022-09-09Add mdx expression (flow, text)Libravatar Titus Wormer11-12/+306
2022-09-09Add some missing docsLibravatar Titus Wormer1-14/+9
2022-09-09Fix to allow blank lines in mdx jsx (flow)Libravatar Titus Wormer2-50/+22
2022-09-09Refactor to move byte, char info to own fileLibravatar Titus Wormer9-215/+225
2022-09-09Add docs to mdx jsxLibravatar Titus Wormer3-4/+355
2022-09-08Refactor to order statesLibravatar Titus Wormer1-197/+194
2022-09-08Add docs to mdx jsx eventsLibravatar Titus Wormer1-24/+437
2022-09-08Add support for mdx jsx (flow)Libravatar Titus Wormer8-95/+219
2022-09-08Refactor to move jsx parsing to partialLibravatar Titus Wormer4-1001/+1014
2022-09-08Add tests for mdx jsx (text)Libravatar Titus Wormer2-12/+41
2022-09-07Fix debug messageLibravatar Titus Wormer1-1/+1
2022-09-07Add support for recoverable syntax errorsLibravatar Titus Wormer8-97/+175
2022-09-07Add support for unicode identifiers in JSXLibravatar Titus Wormer1-24/+95
2022-09-06Add initial states for MDX JSX (text)Libravatar Titus Wormer8-48/+1050
2022-09-05Add support for `mailto:`, `xmpp:` protocolsLibravatar Titus Wormer4-16/+124
2022-09-05Fix some todosLibravatar Titus Wormer5-7/+12
2022-09-05Fix to implement GFM autolink literals exactlyLibravatar Titus Wormer5-162/+805
2022-09-05Add support for getting `char`s from bytesLibravatar Titus Wormer2-21/+32
2022-09-05Fix shifting points past tabsLibravatar Titus Wormer1-9/+10
2022-09-05Fix to improve debug loggingLibravatar Titus Wormer1-2/+16
2022-09-01Add support for GFM tagfilterLibravatar Titus Wormer8-77/+246
2022-08-31Add support for GFM tablesLibravatar Titus Wormer14-36/+1648
2022-08-26Add support for math (flow)Libravatar Titus Wormer12-190/+424
2022-08-26Add support for math (text)Libravatar Titus Wormer12-312/+491
2022-08-25Add support for GFM footnotesLibravatar Titus Wormer17-147/+1527
2022-08-22Fix lazy paragraph after definitionLibravatar Titus Wormer3-13/+63
2022-08-22Add support for GFM task list itemLibravatar Titus Wormer10-12/+338
2022-08-22Add support for GFM strikethroughLibravatar Titus Wormer25-119/+307
2022-08-19Refactor to move more things to `util/`Libravatar Titus Wormer24-40/+44
2022-08-18Add support for GFM autolink literalsLibravatar Titus Wormer11-199/+753
2022-08-16Add `no_std + alloc`Libravatar Titus Wormer21-2/+38
2022-08-16Add support for frontmatterLibravatar Titus Wormer12-17/+479
2022-08-16Update some last docs, bnf grammarsLibravatar Titus Wormer17-111/+226
2022-08-15Refactor to proof docs, grammarsLibravatar Titus Wormer38-424/+687
2022-08-15Add missing mark of `SpaceOrTab` as void eventLibravatar Titus Wormer1-1/+2
2022-08-15Add derive of `Eq` where possibleLibravatar Titus Wormer5-11/+11