Markdown reader: don't allow ^
at beginning of link or image label.
This is reserved for footnotes.
Fixes a regression introduced by 0a93acf
.
Closes #7723.
This commit is contained in:
parent
6e712fa10a
commit
619dfa2a2a
2 changed files with 9 additions and 2 deletions
|
@ -1775,8 +1775,7 @@ endline = try $ do
|
|||
-- a reference label for a link
|
||||
reference :: PandocMonad m => MarkdownParser m (F Inlines, Text)
|
||||
reference = do
|
||||
-- guardDisabled Ext_footnotes <|> notFollowedBy' (string "[^")
|
||||
-- guardDisabled Ext_citations <|> notFollowedBy' (string "[@")
|
||||
guardDisabled Ext_footnotes <|> notFollowedBy' (string "[^")
|
||||
withRaw $ trimInlinesF <$> inlinesInBalancedBrackets
|
||||
|
||||
parenthesizedChars :: PandocMonad m => MarkdownParser m Text
|
||||
|
|
8
test/command/7723.md
Normal file
8
test/command/7723.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
```
|
||||
% pandoc -t native
|
||||
Bug![^1]
|
||||
|
||||
[^1]: Note.
|
||||
^D
|
||||
[ Para [ Str "Bug!" , Note [ Para [ Str "Note." ] ] ] ]
|
||||
```
|
Loading…
Add table
Reference in a new issue