Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2022-10-14 | Remove `must_use` if tarpaulin doesn’t understand them | Titus Wormer | 1 | -3/+2 | |
Also moves some code to separate files, in the hopes that tarpaulin understands them. | |||||
2022-10-14 | Remove some unused code around slices | Titus Wormer | 1 | -6/+3 | |
2022-10-13 | Refactor some code to improve coverage | Titus Wormer | 1 | -24/+18 | |
2022-10-13 | Rename crate to `markdown` | Titus Wormer | 1 | -1/+1 | |
2022-10-11 | Refactor to use a bunch of `into` | Titus Wormer | 1 | -3/+3 | |
2022-10-06 | Refactor to split parse from compile options | Titus Wormer | 1 | -4/+4 | |
2022-10-06 | Add support for HTML 4 character references in JSX attributes | Titus Wormer | 1 | -9/+3 | |
2022-09-26 | Add support for compiling to mdast | Titus Wormer | 1 | -205/+43 | |
See: <https://github.com/syntax-tree/mdast>. | |||||
2022-09-19 | Add structs, enums for `mdast` | Titus Wormer | 1 | -6/+4 | |
2022-09-19 | Add support for parsing MDX ESM, expressions | Titus Wormer | 1 | -1/+2 | |
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-14 | Fix to prefer flow over definitions, setext headings | Titus Wormer | 1 | -3/+3 | |
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-12 | Fix whitespace in GFM footnote definition identifiers | Titus Wormer | 1 | -4/+2 | |
* 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-09 | Add mdx expression (flow, text) | Titus Wormer | 1 | -8/+13 | |
2022-09-08 | Add support for mdx jsx (flow) | Titus Wormer | 1 | -0/+8 | |
2022-09-08 | Add tests for mdx jsx (text) | Titus Wormer | 1 | -1/+5 | |
2022-09-07 | Add support for recoverable syntax errors | Titus Wormer | 1 | -1/+1 | |
2022-09-05 | Add support for `mailto:`, `xmpp:` protocols | Titus Wormer | 1 | -4/+34 | |
2022-09-05 | Fix to implement GFM autolink literals exactly | Titus Wormer | 1 | -4/+33 | |
2022-09-01 | Add support for GFM tagfilter | Titus Wormer | 1 | -46/+43 | |
2022-08-31 | Add support for GFM tables | Titus Wormer | 1 | -3/+232 | |
2022-08-26 | Add support for math (flow) | Titus Wormer | 1 | -35/+44 | |
2022-08-26 | Add support for math (text) | Titus Wormer | 1 | -14/+19 | |
2022-08-25 | Add support for GFM footnotes | Titus Wormer | 1 | -15/+301 | |
2022-08-22 | Add support for GFM task list item | Titus Wormer | 1 | -1/+25 | |
2022-08-22 | Add support for GFM strikethrough | Titus Wormer | 1 | -1/+17 | |
2022-08-19 | Refactor to move more things to `util/` | Titus Wormer | 1 | -1/+1 | |
2022-08-18 | Add support for GFM autolink literals | Titus Wormer | 1 | -35/+72 | |
2022-08-16 | Add `no_std + alloc` | Titus Wormer | 1 | -1/+7 | |
2022-08-16 | Add support for frontmatter | Titus Wormer | 1 | -0/+13 | |
2022-08-15 | Refactor to proof docs, grammars | Titus Wormer | 1 | -66/+89 | |
2022-08-15 | Refactor to solve some clippy issues | Titus Wormer | 1 | -1/+0 | |
2022-08-12 | Refactor to improve docs of each function | Titus Wormer | 1 | -1/+1 | |
2022-08-11 | Refactor to move `space_or_tab_eol` to own file | Titus Wormer | 1 | -61/+61 | |
2022-08-11 | Refactor to move some code to `event.rs` | Titus Wormer | 1 | -105/+102 | |
2022-08-11 | Add improved container exit injection | Titus Wormer | 1 | -27/+42 | |
2022-08-09 | Rewrite algorithm to not pass around boxed functions | Titus Wormer | 1 | -21/+38 | |
* Pass state names from an enum around instead of boxed functions * Refactor to simplify attempts a lot * Use a subtokenizer for the the `document` content type | |||||
2022-08-01 | Refactor to pass more `&str`s, work on more bytes | Titus Wormer | 1 | -90/+65 | |
2022-08-01 | Remove unneeded field in compile context | Titus Wormer | 1 | -39/+8 | |
2022-07-29 | Refactor to improve states | Titus Wormer | 1 | -236/+304 | |
* Remove custom kind wrappers, use plain bytes instead * Remove `Into`s, use the explicit expected types instead * Refactor to use `slice.as_str` in most places * Remove unneeded unique check before adding a definition * Use a shared CDATA prefix in constants * Inline byte checks into matches * Pass bytes back from parser instead of whole parse state * Refactor to work more often on bytes * Rename custom `size` to `len` | |||||
2022-07-29 | Refactor to work on bytes (`u8`) | Titus Wormer | 1 | -21/+24 | |
2022-07-28 | Refactor to work on `char`s | Titus Wormer | 1 | -95/+109 | |
Previously, a custom char implementation was used. This was easier to work with, as sometimes “virtual” characters are injected, or characters are ignored. This replaces that with working on actual `char`s. In the hope of in the future working on `u8`s, even. This simplifies the state machine somewhat, as only `\n` is fed, regardless of whether it was a CRLF, CR, or LF. It also feeds `' '` instead of virtual spaces. The BOM, if present, is now available as a `ByteOrderMark` event. | |||||
2022-07-22 | Refactor to remove unneeded tuples in every states | Titus Wormer | 1 | -3/+3 | |
2022-07-20 | Refactor to improve allocation around strings | Titus Wormer | 1 | -94/+80 | |
2022-07-19 | Remove another unneeded `HashMap` | Titus Wormer | 1 | -137/+120 | |
2022-07-18 | Change to improve `default_line_ending` api | Titus Wormer | 1 | -3/+1 | |
2022-07-18 | Refactor to move options to `lib/` | Titus Wormer | 1 | -160/+1 | |
2022-07-18 | Remove unneeded token | Titus Wormer | 1 | -10/+8 | |
2022-07-15 | Fix some final eol bugs | Titus Wormer | 1 | -0/+9 | |
2022-07-15 | Fix compiling final eof after list items | Titus Wormer | 1 | -0/+2 | |
2022-07-15 | Refactor to sort, document lists in token | Titus Wormer | 1 | -2/+1 | |