aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-13Remove some unused codeLibravatar Titus Wormer3-25/+19
2022-10-13Add missing test for mdastLibravatar Titus Wormer1-0/+32
2022-10-13Refactor some code to improve coverageLibravatar Titus Wormer5-85/+62
2022-10-13Fix cr, crlf in code (fenced) for mdastLibravatar Titus Wormer1-3/+3
2022-10-13Add a lot of tests on how mdast, unist workLibravatar Titus Wormer2-37/+921
2022-10-13Add a couple tests for `Debug` on unist interfacesLibravatar Titus Wormer1-0/+23
2022-10-13Refactor to improve coverage with assertionLibravatar Titus Wormer1-6/+2
2022-10-13Refactor to improve coverage of titlesLibravatar Titus Wormer2-12/+8
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 Wormer2-50/+15
2022-10-13Remove unneeded code from `gfm_autolink_literal`Libravatar Titus Wormer1-91/+9
2022-10-13Add logo to crate docsLibravatar Titus Wormer1-3/+4
2022-10-13Rename crate to `markdown`Libravatar Titus Wormer9-95/+97
2022-10-12Add note about crate logoLibravatar Titus Wormer1-0/+3
2022-10-12Refactor to improve some module docsLibravatar Titus Wormer12-22/+24
2022-10-11Refactor to use a bunch of `into`Libravatar Titus Wormer8-30/+23
2022-10-11Refactor some hidden internalsLibravatar Titus Wormer3-27/+13
2022-10-11Add some missing internal docsLibravatar Titus Wormer5-22/+66
2022-10-11Add improved docs to public apiLibravatar Titus Wormer2-112/+342
2022-10-11Add support for proper positional info in swc treeLibravatar Titus Wormer9-135/+298
* 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 split parse from compile optionsLibravatar Titus Wormer3-179/+273
2022-10-06Refactor to share identifier methodsLibravatar Titus Wormer4-25/+58
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