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 = _{ " " }