Remove unneeded extra chars to reduce search-index size
This commit is contained in:
parent
118e052d84
commit
24031466b7
1 changed files with 5 additions and 1 deletions
|
@ -852,7 +852,11 @@ pub fn plain_summary_line(md: &str) -> String {
|
|||
s.push_str(&t);
|
||||
}
|
||||
}
|
||||
s
|
||||
if s.len() > 60 {
|
||||
s.chars().take(60).collect::<String>()
|
||||
} else {
|
||||
s
|
||||
}
|
||||
}
|
||||
|
||||
pub fn markdown_links(md: &str) -> Vec<(String, Option<Range<usize>>)> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue