aboutsummaryrefslogtreecommitdiffstats
path: root/src/content/string.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactor internal docs, code style of tokenizerLibravatar Titus Wormer2022-08-111-1/+1
|
* Add `State::Retry`Libravatar Titus Wormer2022-08-101-2/+2
|
* Rename `State::Fn` to `State::Next`Libravatar Titus Wormer2022-08-101-5/+5
|
* Add support for passing `ok`, `nok` as separate states to attemptsLibravatar Titus Wormer2022-08-091-13/+15
|
* Rewrite algorithm to not pass around boxed functionsLibravatar Titus Wormer2022-08-091-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
* Refactor to remove most closuresLibravatar Titus Wormer2022-08-021-6/+9
|
* Refactor to work on bytes (`u8`)Libravatar Titus Wormer2022-07-291-1/+1
|
* Refactor to work on `char`sLibravatar Titus Wormer2022-07-281-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.
* Refactor to drastically improve perf around whitespaceLibravatar Titus Wormer2022-07-261-19/+15
|
* Refactor to not pass codes aroundLibravatar Titus Wormer2022-07-251-5/+5
|
* Remove no longer needed field in `State::Ok`Libravatar Titus Wormer2022-07-251-1/+1
|
* Refactor to remove unneeded tuples in every statesLibravatar Titus Wormer2022-07-221-4/+4
|
* Refactor to pass ints instead of vecs aroundLibravatar Titus Wormer2022-07-221-1/+1
|
* Refactor to improve performance by passing markers aroundLibravatar Titus Wormer2022-07-211-23/+12
|
* Refactor to improve performance when constructs are turned offLibravatar Titus Wormer2022-07-181-22/+25
|
* Add support for turning off constructsLibravatar Titus Wormer2022-07-181-0/+1
|
* Add support for trimming whitespace around string, textLibravatar Titus Wormer2022-06-301-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
* Refactor to improve tokenizer, add docsLibravatar Titus Wormer2022-06-221-3/+4
|
* Make data a constructLibravatar Titus Wormer2022-06-211-41/+9
|
* Refactor to improve a bunch of statesLibravatar Titus Wormer2022-06-211-8/+0
| | | | | | * Improve passing stuff around * Add traits to enums for markers and such * Fix “life time” stuff I didn’t understand
* Add some more enabled testsLibravatar Titus Wormer2022-06-201-2/+0
|
* Add support for line endings in stringLibravatar Titus Wormer2022-06-201-9/+23
|
* Remove unneeded `content` content typeLibravatar Titus Wormer2022-06-201-1/+3
|
* Add support for definitionsLibravatar Titus Wormer2022-06-171-0/+2
| | | | | | * Add definitions * Add partials for label, destination, title * Add `go`, to attempt something, and do something else on `ok`
* Refactor to reorder thing alphabeticallyLibravatar Titus Wormer2022-06-161-0/+1
|
* Add text content typeLibravatar Titus Wormer2022-06-101-8/+2
| | | | | * Add character reference and character escapes in text * Add recursive subtokenization
* Add proper support for subtokenizationLibravatar Titus Wormer2022-06-101-36/+6
| | | | | | | - Add “content” content type - Add paragraph - Add skips - Add linked tokens
* Add basic subtokenization, string content in fenced codeLibravatar Titus Wormer2022-06-091-16/+4
|
* Refactor to pass more slices aroundLibravatar Titus Wormer2022-06-091-1/+1
|
* .Libravatar Titus Wormer2022-06-081-0/+120