aboutsummaryrefslogtreecommitdiffstats
path: root/src/util (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactor to move some code to `event.rs`Libravatar Titus Wormer2022-08-113-35/+25
|
* Add missing docs, refactor some codeLibravatar Titus Wormer2022-08-011-13/+26
|
* Refactor to pass more `&str`s, work on more bytesLibravatar Titus Wormer2022-08-011-0/+5
|
* Refactor to improve statesLibravatar Titus Wormer2022-07-295-76/+91
| | | | | | | | | | | | * 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`)Libravatar Titus Wormer2022-07-291-26/+18
|
* Refactor to use `debug_assert`Libravatar Titus Wormer2022-07-281-1/+1
|
* Refactor to work on `char`sLibravatar Titus Wormer2022-07-286-188/+167
| | | | | | | | | | | | | | | 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 use a single shared edit mapLibravatar Titus Wormer2022-07-221-9/+6
|
* Refactor to remove unneeded tuples in every statesLibravatar Titus Wormer2022-07-222-2/+2
|
* Refactor performance around links in subtokenizeLibravatar Titus Wormer2022-07-211-28/+35
|
* Refactor to move `index` field to `point`Libravatar Titus Wormer2022-07-211-2/+2
|
* Refactor to move some event fields to `link`Libravatar Titus Wormer2022-07-211-3/+5
|
* Refactor to improve allocation around stringsLibravatar Titus Wormer2022-07-204-82/+65
|
* Refactor to use less vecs for eventsLibravatar Titus Wormer2022-07-201-42/+28
|
* Refactor to remove cloning in `edit_map`Libravatar Titus Wormer2022-07-191-19/+25
|
* Use `edit_map` in `subtokenize`Libravatar Titus Wormer2022-07-191-14/+1
|
* Remove another unneeded `HashMap`Libravatar Titus Wormer2022-07-191-40/+38
|
* Fix dead link in docsLibravatar Titus Wormer2022-07-181-3/+3
|
* Fix edge case in identifier normalizationLibravatar Titus Wormer2022-07-181-1/+9
|
* Fix to use single array for character referencesLibravatar Titus Wormer2022-07-151-7/+4
|
* Add support for container stateLibravatar Titus Wormer2022-07-142-7/+15
| | | | | | * 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 lists in lists and some other bugsLibravatar Titus Wormer2022-07-131-6/+0
|
* Fix some issues around empty listsLibravatar Titus Wormer2022-07-121-1/+4
|
* Fix a lot of list thingsLibravatar Titus Wormer2022-07-121-7/+34
| | | | | | | | * 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 tests for matching identifiers w/ turkish `i`Libravatar Titus Wormer2022-07-111-1/+0
|
* Refactor to move token types to `token`Libravatar Titus Wormer2022-07-071-4/+5
|
* Refactor to use `char::REPLACEMENT_CHARACTER`Libravatar Titus Wormer2022-07-072-2/+2
|
* Fix some small to dosLibravatar Titus Wormer2022-07-071-3/+5
|
* Add basic support for block quotesLibravatar Titus Wormer2022-07-073-0/+46
|
* Fix shifting jumps in tail of edit mapLibravatar Titus Wormer2022-07-071-1/+3
|
* Refactor to do some to dosLibravatar Titus Wormer2022-07-051-2/+4
|
* Refactor code styleLibravatar Titus Wormer2022-07-055-64/+161
|
* Add support for unicode punctuationLibravatar Titus Wormer2022-07-041-1/+1
|
* Update list of todosLibravatar Titus Wormer2022-07-041-2/+1
|
* Fix opening/closing tag order of nested attentionLibravatar Titus Wormer2022-07-041-12/+29
|
* Refactor to clean and document `edit_map`Libravatar Titus Wormer2022-07-011-2/+19
|
* Add support for sharing identifiers, references before definitionsLibravatar Titus Wormer2022-06-291-18/+1
|
* Add some more crosslinks to docsLibravatar Titus Wormer2022-06-281-3/+2
|
* Fix jumps in `edit_map`Libravatar Titus Wormer2022-06-282-0/+145
| | | | | | | | | * Use resolve more often (e.g., heading (atx, setext)) * Fix to link whole phrasing (e.g., one big chunk of text in heading (atx, setext), titles, labels) * Replace `ChunkText`, `ChunkString`, with `event.content_type: Option<ContentType>` * Refactor to externalize `edit_map` from `label`
* Add link, images (resource)Libravatar Titus Wormer2022-06-241-1/+1
| | | | | | | | | | | | This is still some messy code that needs cleaning up, but it adds support for links and images, of the resource kind (`[a](b)`). References (`[a][b]`) are parsed and will soon be supported, but need matching. * Fix bug to pad percent-encoded bytes when normalizing urls * Fix bug with escapes counting as balancing in destination * Add `space_or_tab_one_line_ending`, to parse whitespace including up to one line ending (but not a blank line) * Add `ParserState` to share codes, definitions, etc
* Add docs on normalizing identifiers, matchingLibravatar Titus Wormer2022-06-221-2/+33
|
* Add support for normalizing identifiersLibravatar Titus Wormer2022-06-223-0/+40
|
* Add docs for `subtokenize`Libravatar Titus Wormer2022-06-212-9/+0
|
* Add support for line endings in stringLibravatar Titus Wormer2022-06-202-0/+9
|
* Add support for hard break (trailing)Libravatar Titus Wormer2022-06-161-1/+1
|
* Add docs on sanitizing urls to autolinkLibravatar Titus Wormer2022-06-151-2/+2
|
* Add examples to some docsLibravatar Titus Wormer2022-06-142-2/+22
|
* Reorganize to split utilLibravatar Titus Wormer2022-06-145-0/+361