From 2ee34a0923643f277775c874beb8990be4b1385c Mon Sep 17 00:00:00 2001 From: Camelid Date: Sun, 6 Dec 2020 18:52:36 -0800 Subject: [PATCH] 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". --- src/librustdoc/html/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index 0e4c5410abe1e..fb17eb462e145 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) {