aboutsummaryrefslogtreecommitdiffstats
path: root/tests/autolink.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-13Rename crate to `markdown`Libravatar Titus Wormer1-44/+44
2022-10-11Refactor to use a bunch of `into`Libravatar Titus Wormer1-7/+7
2022-10-06Refactor to split parse from compile optionsLibravatar Titus Wormer1-7/+13
2022-09-28Add support for turning mdast to hastLibravatar Titus Wormer1-2/+4
2022-09-26Add support for compiling to mdastLibravatar Titus Wormer1-1/+50
See: <https://github.com/syntax-tree/mdast>.
2022-09-07Add support for recoverable syntax errorsLibravatar Titus Wormer1-23/+22
2022-08-18Add `pretty_assertions` to tests for diffsLibravatar Titus Wormer1-0/+1
2022-07-18Add support for turning off constructsLibravatar Titus Wormer1-16/+24
2022-07-07Add basic support for block quotesLibravatar Titus Wormer1-6/+0
2022-07-01Make paragraphs really fastLibravatar Titus Wormer1-1/+1
The approach that `micromark-js` takes is as follows: to parse a paragraph, check whether each line starts with something else. If it does, exit, otherwise continue. That is slow, because our actual flow parser does similar things: the work was being done twice. To fix this, this commit introduces parsing each line of a paragraph separately. And finally, when done with flow, combining adjacent paragraphs. This same mechanism is reused for setext headings. Additionally, this commit adds support for interrupting things (or not). E.g., HTML (flow, complete) cannot interrupt paragraphs. Definitions cannot interrupt paragraphs, and connect be interrupted either, but they can follow each other.
2022-06-21Make data a constructLibravatar Titus Wormer1-1/+1
2022-06-21Add support for inferring line ending, configurableLibravatar Titus Wormer1-2/+3
* 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 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-13Add support for sanitizing urlsLibravatar Titus Wormer1-25/+38
* 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