diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-30 16:35:13 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-30 16:35:13 +0200 |
commit | be62b2e29a61774100f676cfdd9b100cadf1905f (patch) | |
tree | 4349e259fc0150526dc32242b92d85218091fca5 /readme.md | |
parent | 13588776d65601a41ddfce85f618e8aaa55951cc (diff) | |
download | markdown-rs-be62b2e29a61774100f676cfdd9b100cadf1905f.tar.gz markdown-rs-be62b2e29a61774100f676cfdd9b100cadf1905f.tar.bz2 markdown-rs-be62b2e29a61774100f676cfdd9b100cadf1905f.zip |
Add support for trimming whitespace around string, text
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
Diffstat (limited to '')
-rw-r--r-- | readme.md | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -138,10 +138,6 @@ cargo doc --document-private-items #### Parse -- [ ] (1) Parse initial and final space_or_tab of paragraphs (in text)\ - test (`code_indented`, `definition`, `hard_break_escape`, `hard_break_trailing`, - `heading_atx`, `heading_setext`, `html_flow`, `misc_soft_break`, - `misc_tabs`, `thematic_break`) - [ ] (3) Interrupting (html flow complete, definition + code_indented) - [ ] (5) attention\ test (`character_reference`, `hard_break_escape`, `hard_break_trailing`, @@ -281,3 +277,4 @@ important. - [x] (1) Add docs to Image, Link, and other media tokens - [x] (1) Add docs on resolver, clean feed - [x] (3) Clean compiler +- [x] (1) Parse initial and final space_or_tab of paragraphs (in string, text) |