This commit is contained in:
Maverick Liu 2025-02-23 03:55:53 +08:00
parent 018d27b707
commit 67637842fb

View file

@ -182,9 +182,7 @@ fn post_process_md(markdown: &str, file_name_map: &HashMap<&OsStr, &OsStr>) -> S
.replace(r"![]()", "") .replace(r"![]()", "")
.replace(r"[]()", ""); .replace(r"[]()", "");
EMPTY_LINK EMPTY_LINK.replace_all(&markdown, "$1").to_string()
.replace_all(&markdown, |caps: &Captures| caps[1].to_string())
.to_string()
} }
fn write_book_toml( fn write_book_toml(