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".
This commit is contained in:
Camelid 2020-12-06 18:52:36 -08:00
parent 5bb68c31f8
commit 2ee34a0923

View File

@ -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) {