Skip to content

Commit

Permalink
parse wikilink with md extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Feel-ix-343 committed Jun 25, 2024
1 parent 34a4728 commit 8805d28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vault/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ impl Reference {
pub fn new(text: &str) -> impl Iterator<Item = Reference> + '_ {
static WIKI_LINK_RE: Lazy<Regex> = Lazy::new(|| {
Regex::new(r"\[\[(?<filepath>[^\[\]\|\.\#]+)(\#(?<infileref>[^\[\]\.\|]+))?(?<ending>\.[^\# <>]+)?(\|(?<display>[^\[\]\.\|]+))?\]\]")

.unwrap()
}); // A [[link]] that does not have any [ or ] in it

Expand Down

0 comments on commit 8805d28

Please sign in to comment.