Skip to content

Commit

Permalink
fix: allow non-square brackets in internal links
Browse files Browse the repository at this point in the history
closes #70
  • Loading branch information
kmaasrud committed Feb 22, 2022
1 parent cf4e7fe commit 577e84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preprocess/wikilink.pest
Original file line number Diff line number Diff line change
Expand Up @@ -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 = _{ " " }

0 comments on commit 577e84c

Please sign in to comment.