1
Fork 0

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".
This commit is contained in:
bors 2020-12-08 01:15:26 +00:00
commit d4aea0b749

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