Markdown reader: fix parsing of "bare locators"...
...after author-in-text citations. Previously `@item [p. 12; @item2]` was incorrectly parsed as three citations rather than two. This is now fixed by ensuring that `prefix` doesn't gobble any semicolons.
This commit is contained in:
parent
ea77f2e6f6
commit
2015c9070d
1 changed files with 1 additions and 1 deletions
|
@ -2216,7 +2216,7 @@ suffix = try $ do
|
|||
|
||||
prefix :: PandocMonad m => MarkdownParser m (F Inlines)
|
||||
prefix = trimInlinesF . mconcat <$>
|
||||
manyTill inline (char ']'
|
||||
manyTill (notFollowedBy (char ';') >> inline) (char ']'
|
||||
<|> lookAhead
|
||||
(try $ do optional (try (char ';' >> spnl))
|
||||
citeKey True
|
||||
|
|
Loading…
Add table
Reference in a new issue