about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-08 01:15:26 +0000
committerbors <bors@rust-lang.org>2020-12-08 01:15:26 +0000
commitd4aea0b7498fdb7dce496e42b10fb44e90cb1453 (patch)
treec5ebdd5b2c084e084fb46bbb1c3f0725ab49c98d
parentbda05cc471f8cf4a3c45f587f87d7b01a8343c3c (diff)
parent2ee34a0923643f277775c874beb8990be4b1385c (diff)
downloadrust-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.rs2
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) {