markdown-link-rule-dess
Felix Ableitner 2023-11-09 11:59:08 +01:00
parent 289c55de01
commit bf6b0a50a4
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ pub fn markdown_rewrite_image_links(mut src: String) -> (String, Vec<Url>) {
while let Some((start, end)) = links_offsets.pop() {
let content = src.get(start..end).unwrap_or_default();
// necessary for custom emojis which look like `![name](url "title")`
let (url, extra) = if content.contains(" ") {
let split = content.split_once(" ").expect("split is valid");
let (url, extra) = if content.contains(' ') {
let split = content.split_once(' ').expect("split is valid");
(split.0, Some(split.1))
} else {
(content, None)