Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix to prefer flow over definitions, setext headings | Titus Wormer | 2022-09-14 | 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. | ||||
* | Fix whitespace in GFM footnote definition identifiers | Titus Wormer | 2022-09-12 | 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 | ||||
* | Add mdx expression (flow, text) | Titus Wormer | 2022-09-09 | 1 | -8/+13 |
| | |||||
* | Add support for mdx jsx (flow) | Titus Wormer | 2022-09-08 | 1 | -0/+8 |
| | |||||
* | Add tests for mdx jsx (text) | Titus Wormer | 2022-09-08 | 1 | -1/+5 |
| | |||||
* | Add support for recoverable syntax errors | Titus Wormer | 2022-09-07 | 1 | -1/+1 |
| | |||||
* | Add support for `mailto:`, `xmpp:` protocols | Titus Wormer | 2022-09-05 | 1 | -4/+34 |
| | |||||
* | Fix to implement GFM autolink literals exactly | Titus Wormer | 2022-09-05 | 1 | -4/+33 |
| | |||||
* | Add support for GFM tagfilter | Titus Wormer | 2022-09-01 | 1 | -46/+43 |
| | |||||
* | Add support for GFM tables | Titus Wormer | 2022-08-31 | 1 | -3/+232 |
| | |||||
* | Add support for math (flow) | Titus Wormer | 2022-08-26 | 1 | -35/+44 |
| | |||||
* | Add support for math (text) | Titus Wormer | 2022-08-26 | 1 | -14/+19 |
| | |||||
* | Add support for GFM footnotes | Titus Wormer | 2022-08-25 | 1 | -15/+301 |
| | |||||
* | Add support for GFM task list item | Titus Wormer | 2022-08-22 | 1 | -1/+25 |
| | |||||
* | Add support for GFM strikethrough | Titus Wormer | 2022-08-22 | 1 | -1/+17 |
| | |||||
* | Refactor to move more things to `util/` | Titus Wormer | 2022-08-19 | 1 | -1/+1 |
| | |||||
* | Add support for GFM autolink literals | Titus Wormer | 2022-08-18 | 1 | -35/+72 |
| | |||||
* | Add `no_std + alloc` | Titus Wormer | 2022-08-16 | 1 | -1/+7 |
| | |||||
* | Add support for frontmatter | Titus Wormer | 2022-08-16 | 1 | -0/+13 |
| | |||||
* | Refactor to proof docs, grammars | Titus Wormer | 2022-08-15 | 1 | -66/+89 |
| | |||||
* | Refactor to solve some clippy issues | Titus Wormer | 2022-08-15 | 1 | -1/+0 |
| | |||||
* | Refactor to improve docs of each function | Titus Wormer | 2022-08-12 | 1 | -1/+1 |
| | |||||
* | Refactor to move `space_or_tab_eol` to own file | Titus Wormer | 2022-08-11 | 1 | -61/+61 |
| | |||||
* | Refactor to move some code to `event.rs` | Titus Wormer | 2022-08-11 | 1 | -105/+102 |
| | |||||
* | Add improved container exit injection | Titus Wormer | 2022-08-11 | 1 | -27/+42 |
| | |||||
* | Rewrite algorithm to not pass around boxed functions | Titus Wormer | 2022-08-09 | 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 | ||||
* | Refactor to pass more `&str`s, work on more bytes | Titus Wormer | 2022-08-01 | 1 | -90/+65 |
| | |||||
* | Remove unneeded field in compile context | Titus Wormer | 2022-08-01 | 1 | -39/+8 |
| | |||||
* | Refactor to improve states | Titus Wormer | 2022-07-29 | 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` | ||||
* | Refactor to work on bytes (`u8`) | Titus Wormer | 2022-07-29 | 1 | -21/+24 |
| | |||||
* | Refactor to work on `char`s | Titus Wormer | 2022-07-28 | 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. | ||||
* | Refactor to remove unneeded tuples in every states | Titus Wormer | 2022-07-22 | 1 | -3/+3 |
| | |||||
* | Refactor to improve allocation around strings | Titus Wormer | 2022-07-20 | 1 | -94/+80 |
| | |||||
* | Remove another unneeded `HashMap` | Titus Wormer | 2022-07-19 | 1 | -137/+120 |
| | |||||
* | Change to improve `default_line_ending` api | Titus Wormer | 2022-07-18 | 1 | -3/+1 |
| | |||||
* | Refactor to move options to `lib/` | Titus Wormer | 2022-07-18 | 1 | -160/+1 |
| | |||||
* | Remove unneeded token | Titus Wormer | 2022-07-18 | 1 | -10/+8 |
| | |||||
* | Fix some final eol bugs | Titus Wormer | 2022-07-15 | 1 | -0/+9 |
| | |||||
* | Fix compiling final eof after list items | Titus Wormer | 2022-07-15 | 1 | -0/+2 |
| | |||||
* | Refactor to sort, document lists in token | Titus Wormer | 2022-07-15 | 1 | -2/+1 |
| | |||||
* | Refactor to sort, document lists in compiler | Titus Wormer | 2022-07-15 | 1 | -153/+146 |
| | |||||
* | Fix two more list bugs | Titus Wormer | 2022-07-14 | 1 | -1/+1 |
| | |||||
* | Add support for container state | Titus Wormer | 2022-07-14 | 1 | -3/+18 |
| | | | | | | * Fix to parse list item continuation based on how big the initial list item prefix was * Fix list items that start with blank lines | ||||
* | Fix a bunch of container things | Titus Wormer | 2022-07-14 | 1 | -18/+37 |
| | | | | | | | | * Fix a lot of container code * Fix to prevent code (indented) from interrupting a lazy container * Fix compiling when combining tight paragraphs, empty list items, and html * Fix list items starting w/ blank lines causing loose lists * Fix crash when looking for a previous blank line | ||||
* | Fix to close containers before several (blank) line endings | Titus Wormer | 2022-07-13 | 1 | -11/+12 |
| | |||||
* | Fix a lot of list things | Titus Wormer | 2022-07-12 | 1 | -20/+71 |
| | | | | | | | | * Add `ListItem`, `ListOrdered`, and `ListUnordered` tokens * Add support for multiline list items * Add support for tight lists * Fix bug where 10 digit long list item values worked * Fix skip bug when skipping over nested events | ||||
* | Add initial support for lists | Titus Wormer | 2022-07-12 | 1 | -4/+78 |
| | |||||
* | Fix block quote bugs | Titus Wormer | 2022-07-11 | 1 | -6/+9 |
| | |||||
* | Refactor to move token types to `token` | Titus Wormer | 2022-07-07 | 1 | -136/+131 |
| | |||||
* | Fix to order enter/exit maps | Titus Wormer | 2022-07-07 | 1 | -46/+48 |
| |