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:
commit
d4aea0b749
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue