From f0dd6f7132f3d7d238f8f77552b978c7c8d00a9d Mon Sep 17 00:00:00 2001 From: Nick Groenen Date: Tue, 16 Feb 2021 09:13:04 +0100 Subject: [PATCH] Fix: also percent-encode `?` in filenames A recent Obsidian update expanded the list of allowed characters in filenames, which now includes `?` as well. This needs to be percent-encoded for proper links in static site generators like Hugo. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index b1e503d..691949b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,7 @@ lazy_static! { static ref OBSIDIAN_NOTE_LINK_RE: Regex = Regex::new(r"^(?P[^#|]+)??(#(?P
.+?))??(\|(?P