aboutsummaryrefslogtreecommitdiffstats
path: root/src/content/string.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-08-09Rewrite algorithm to not pass around boxed functionsLibravatar Titus Wormer1-11/+17
* 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-02Refactor to remove most closuresLibravatar Titus Wormer1-6/+9
2022-07-29Refactor to work on bytes (`u8`)Libravatar Titus Wormer1-1/+1
2022-07-28Refactor to work on `char`sLibravatar Titus Wormer1-3/+3
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-26Refactor to drastically improve perf around whitespaceLibravatar Titus Wormer1-19/+15
2022-07-25Refactor to not pass codes aroundLibravatar Titus Wormer1-5/+5
2022-07-25Remove no longer needed field in `State::Ok`Libravatar Titus Wormer1-1/+1
2022-07-22Refactor to remove unneeded tuples in every statesLibravatar Titus Wormer1-4/+4
2022-07-22Refactor to pass ints instead of vecs aroundLibravatar Titus Wormer1-1/+1
2022-07-21Refactor to improve performance by passing markers aroundLibravatar Titus Wormer1-23/+12
2022-07-18Refactor to improve performance when constructs are turned offLibravatar Titus Wormer1-22/+25
2022-07-18Add support for turning off constructsLibravatar Titus Wormer1-0/+1
2022-06-30Add support for trimming whitespace around string, textLibravatar Titus Wormer1-5/+12
This commit introduces trimming initial and final whitespace around the whole string or text, or around line endings inside that string or text. * Add `register_resolver_before`, to run resolvers earlier than others, used for labels * Add resolver to merge `data` events, which are the most frequent token that occurs, and can happen adjacently. In `micromark-js` this sped up parsing a lot * Fix a bug where a virtual space was not seen as an okay event * Refactor to enable all turned off whitespace tests
2022-06-22Refactor to improve tokenizer, add docsLibravatar Titus Wormer1-3/+4
2022-06-21Make data a constructLibravatar Titus Wormer1-41/+9
2022-06-21Refactor to improve a bunch of statesLibravatar Titus Wormer1-8/+0
* Improve passing stuff around * Add traits to enums for markers and such * Fix “life time” stuff I didn’t understand
2022-06-20Add some more enabled testsLibravatar Titus Wormer1-2/+0
2022-06-20Add support for line endings in stringLibravatar Titus Wormer1-9/+23
2022-06-20Remove unneeded `content` content typeLibravatar Titus Wormer1-1/+3
2022-06-17Add support for definitionsLibravatar Titus Wormer1-0/+2
* Add definitions * Add partials for label, destination, title * Add `go`, to attempt something, and do something else on `ok`
2022-06-16Refactor to reorder thing alphabeticallyLibravatar Titus Wormer1-0/+1
2022-06-10Add text content typeLibravatar Titus Wormer1-8/+2
* Add character reference and character escapes in text * Add recursive subtokenization
2022-06-10Add proper support for subtokenizationLibravatar Titus Wormer1-36/+6
- Add “content” content type - Add paragraph - Add skips - Add linked tokens
2022-06-09Add basic subtokenization, string content in fenced codeLibravatar Titus Wormer1-16/+4
2022-06-09Refactor to pass more slices aroundLibravatar Titus Wormer1-1/+1