Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support underscores in Markdown URLs
By default, `pulldown_cmark` produces multiple text events if it detects an `_`. That is for performance reasons. More information [here](See pulldown-cmark/pulldown-cmark#146). The correct way to handle this is by using the [`TextMergeStream`](https://docs.rs/pulldown-cmark/latest/pulldown_cmark/utils/struct.TextMergeStream.html) helper-struct, which provides an iterator that merges consecutive `Event::Text` events into one. With this, we can correctly parse links like `http://example.com/_/foo`. Fixes #1529
- Loading branch information