From 577e84c4db41e6982658d89cc5abb04fb833c93c Mon Sep 17 00:00:00 2001 From: kmaasrud Date: Tue, 22 Feb 2022 09:57:34 +0100 Subject: [PATCH] fix: allow non-square brackets in internal links closes #70 --- src/preprocess/wikilink.pest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preprocess/wikilink.pest b/src/preprocess/wikilink.pest index be659509..8f9f16c7 100644 --- a/src/preprocess/wikilink.pest +++ b/src/preprocess/wikilink.pest @@ -7,6 +7,6 @@ alias = { ident_extended } header = { "#" ~ !"^" ~ ident } blockref = { "#^" ~ ident } -ident = _{ (!("|" | "=" | "`" | "^" | ":" | "#" | OPEN_PUNCTUATION | CLOSE_PUNCTUATION | CONTROL | LINE_SEPARATOR | PARAGRAPH_SEPARATOR) ~ ANY)+ } +ident = _{ (!("|" | "=" | "`" | "^" | ":" | "#" | "[" | "]" | CONTROL | LINE_SEPARATOR | PARAGRAPH_SEPARATOR) ~ ANY)+ } ident_extended = _{ (!("[[" | "]]" | CONTROL | LINE_SEPARATOR | PARAGRAPH_SEPARATOR) ~ ANY)+ } WHITESPACE = _{ " " }