aboutsummaryrefslogtreecommitdiffstats
path: root/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-06-30Fix to prefer resource when givenLibravatar Titus Wormer1-6/+11
2022-06-30Add tests for link (reference)Libravatar Titus Wormer1-0/+402
2022-06-30Refactor to enable more image testsLibravatar Titus Wormer1-62/+60
2022-06-29Fix a bunch of bugs with definitions, referencesLibravatar Titus Wormer1-77/+71
* Fix bug where whitespace after `:` was not allowed, it is * Fix bug where escapes in labels did not work due to typo * Fix to prefer first definition * Fix whitespace after definitions * Fix matching by adding normalizing * Fix reference from being output as data
2022-06-29Add support for compiling definitionsLibravatar Titus Wormer3-160/+136
2022-06-28Fix jumps in `edit_map`Libravatar Titus Wormer1-5/+6
* 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`
2022-06-24Add link, images (resource)Libravatar Titus Wormer7-274/+951
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
2022-06-21Make data a constructLibravatar Titus Wormer1-1/+1
2022-06-21Add support for inferring line ending, configurableLibravatar Titus Wormer11-18/+244
* Rename `CompileOptions` to `Options` * Add support for an optional default line ending style * Add support for inferring the used line ending style
2022-06-20Add support for BOMLibravatar Titus Wormer2-9/+9
2022-06-20Fix bug with tabsLibravatar Titus Wormer2-54/+45
2022-06-20Add some more enabled testsLibravatar Titus Wormer1-68/+58
2022-06-20Add support for line endings in stringLibravatar Titus Wormer1-1/+1
2022-06-20Add improved whitespace handlingLibravatar Titus Wormer1-1/+1
* add several helpers for parsing betwen x and y `space_or_tab`s * use those helpers in a bunch of places * move initial indent parsing to flow constructs themselves
2022-06-17Add support for definitionsLibravatar Titus Wormer3-2/+448
* Add definitions * Add partials for label, destination, title * Add `go`, to attempt something, and do something else on `ok`
2022-06-16Add heading (setext)Libravatar Titus Wormer5-19/+295
2022-06-16Add support for hard break (trailing)Libravatar Titus Wormer2-119/+135
2022-06-16Add support for hard break escapeLibravatar Titus Wormer2-6/+172
2022-06-15Add support for text in heading (atx)Libravatar Titus Wormer1-17/+15
2022-06-15Add code (text)Libravatar Titus Wormer5-60/+212
2022-06-15Add tests for nulLibravatar Titus Wormer1-0/+25
2022-06-15Add tests for urlsLibravatar Titus Wormer1-0/+152
2022-06-15Add tests for tabsLibravatar Titus Wormer1-0/+305
2022-06-15Update to enable some tests for added constructsLibravatar Titus Wormer5-30/+20
2022-06-15Add tests for dangerous optionsLibravatar Titus Wormer2-0/+227
2022-06-15Add tests for bomsLibravatar Titus Wormer1-0/+15
2022-06-15Add tests for soft breaksLibravatar Titus Wormer1-0/+18
2022-06-15Add tests for textLibravatar Titus Wormer1-0/+23
2022-06-15Add tests for character referenceLibravatar Titus Wormer1-0/+204
* Fix encoding of character references * Fix unneeded remainder in `nok` state
2022-06-15Add tests for character escapeLibravatar Titus Wormer1-0/+91
2022-06-14Fix support for deep subtokenizationLibravatar Titus Wormer2-64/+55
* Fix a couple of forgotten line ending handling in html (text) * Fix missing initial case for html (text) not having a `<` 😬 * Add line ending handling to `text` construct
2022-06-13Add basic html (text)Libravatar Titus Wormer2-5/+440
* Add all states for html (text) * Fix to link paragraph tokens together * Add note about uncovered bug where linking paragraph tokens together doesn’t work 😅
2022-06-13Add support for sanitizing urlsLibravatar Titus Wormer2-25/+39
* Add support for properly encoding characters in urls * Add support for sanitizing potentially dangerous urls * Add safe defaults, optionally live dangerously
2022-06-13Add autolinksLibravatar Titus Wormer1-0/+247
2022-06-10Add proper support for subtokenizationLibravatar Titus Wormer4-20/+24
- Add “content” content type - Add paragraph - Add skips - Add linked tokens
2022-06-09Add basic subtokenization, string content in fenced codeLibravatar Titus Wormer1-6/+5
2022-06-09Add temporary support for stripping whitespaceLibravatar Titus Wormer4-24/+20
2022-06-09Add support for indented lines in paragraphsLibravatar Titus Wormer4-47/+44