Muse reader: fix reading of multiline definitions
This commit is contained in:
parent
3fdf04614a
commit
e32657a671
1 changed files with 2 additions and 2 deletions
|
@ -467,8 +467,8 @@ definitionListItem = try $ do
|
|||
where
|
||||
termParser = (guardDisabled Ext_amuse <|> void spaceChar) >> -- Initial space is required by Amusewiki, but not Emacs Muse
|
||||
many spaceChar >>
|
||||
many1Till anyChar (lookAhead (void (try (spaceChar >> string "::")) <|> void newline))
|
||||
endOfInput = try $ skipMany blankline >> skipSpaces >> eof
|
||||
many1Till (noneOf "\n") (lookAhead (void (try (spaceChar >> string "::"))))
|
||||
endOfInput = lookAhead $ try $ skipMany blankline >> skipSpaces >> eof
|
||||
twoBlankLines = try $ blankline >> skipMany1 blankline
|
||||
newDefinitionListItem = try $ void termParser
|
||||
endOfListItemElement = lookAhead $ endOfInput <|> newDefinitionListItem <|> twoBlankLines
|
||||
|
|
Loading…
Reference in a new issue