1
Fork 0

Remove unneeded extra chars to reduce search-index size

This commit is contained in:
Guillaume Gomez 2018-12-11 10:57:45 +01:00
parent 118e052d84
commit 24031466b7

View file

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