Do not allow unescaped opening bracket in path for link.
This commit is contained in:
parent
7b61329889
commit
853adadf91
@ -78,7 +78,7 @@ fn pathreg<'b, 'g, 'r, 's>(
|
||||
) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
let (remaining, path) = escaped(
|
||||
take_till1(|c| match c {
|
||||
'\\' | ']' => true,
|
||||
'\\' | '[' | ']' => true,
|
||||
_ => false,
|
||||
}),
|
||||
'\\',
|
||||
|
Loading…
Reference in New Issue
Block a user