diff options
| author | bors <bors@rust-lang.org> | 2020-12-08 01:15:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-08 01:15:26 +0000 |
| commit | d4aea0b7498fdb7dce496e42b10fb44e90cb1453 (patch) | |
| tree | c5ebdd5b2c084e084fb46bbb1c3f0725ab49c98d | |
| parent | bda05cc471f8cf4a3c45f587f87d7b01a8343c3c (diff) | |
| parent | 2ee34a0923643f277775c874beb8990be4b1385c (diff) | |
| download | rust-d4aea0b7498fdb7dce496e42b10fb44e90cb1453.tar.gz rust-d4aea0b7498fdb7dce496e42b10fb44e90cb1453.zip | |
Auto merge of #79780 - camelid:use-summary_opts, r=GuillaumeGomez
Use `summary_opts()` in another spot I added `summary_opts()` before I cut the branch for #77686 (2 months ago!), so this "slipped through the cracks".
| -rw-r--r-- | src/librustdoc/html/markdown.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index 0e4c5410abe..fb17eb462e1 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -1057,7 +1057,7 @@ fn markdown_summary_with_limit(md: &str, length_limit: usize) -> (String, bool) *text_length += text.len(); }; - 'outer: for event in Parser::new_ext(md, Options::ENABLE_STRIKETHROUGH) { + 'outer: for event in Parser::new_ext(md, summary_opts()) { match &event { Event::Text(text) => { for word in text.split_inclusive(char::is_whitespace) { |
