From 67637842fb908284a43e0449c9065c6d5c9b3487 Mon Sep 17 00:00:00 2001 From: Maverick Liu Date: Sun, 23 Feb 2025 03:55:53 +0800 Subject: [PATCH] update --- src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2fcd4aa..cb2f4bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -182,9 +182,7 @@ fn post_process_md(markdown: &str, file_name_map: &HashMap<&OsStr, &OsStr>) -> S .replace(r"![]()", "") .replace(r"[]()", ""); - EMPTY_LINK - .replace_all(&markdown, |caps: &Captures| caps[1].to_string()) - .to_string() + EMPTY_LINK.replace_all(&markdown, "$1").to_string() } fn write_book_toml(