mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-26 09:25:48 +00:00
Markdown reader: allow startnum to work without fancy_lists.
Formerly `pandoc -f markdown-fancy_lists+startnum` did not work properly.
This commit is contained in:
@@ -735,9 +735,9 @@ anyOrderedListStart = try $ do
|
||||
skipNonindentSpaces
|
||||
notFollowedBy $ string "p." >> spaceChar >> digit -- page number
|
||||
res <- do guardDisabled Ext_fancy_lists
|
||||
many1 digit
|
||||
start <- many1 digit >>= safeRead
|
||||
char '.'
|
||||
return (1, DefaultStyle, DefaultDelim)
|
||||
return (start, DefaultStyle, DefaultDelim)
|
||||
<|> do (num, style, delim) <- anyOrderedListMarker
|
||||
-- if it could be an abbreviated first name,
|
||||
-- insist on more than one space
|
||||
|
||||
Reference in New Issue
Block a user