Muse reader: code cleanup
This commit is contained in:
parent
588af3cc78
commit
d7f0ecfdd8
1 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ blockElements = choice [ comment
|
|||
comment :: PandocMonad m => MuseParser m (F Blocks)
|
||||
comment = try $ do
|
||||
char ';'
|
||||
optionMaybe (spaceChar >> (many $ noneOf "\n"))
|
||||
optionMaybe (spaceChar >> many (noneOf "\n"))
|
||||
eol
|
||||
return mempty
|
||||
|
||||
|
@ -658,7 +658,7 @@ footnote = try $ do
|
|||
return $ B.note contents'
|
||||
|
||||
whitespace :: PandocMonad m => MuseParser m (F Inlines)
|
||||
whitespace = fmap return (lb <|> regsp)
|
||||
whitespace = return <$> (lb <|> regsp)
|
||||
where lb = try $ skipMany spaceChar >> linebreak >> return B.space
|
||||
regsp = try $ skipMany1 spaceChar >> return B.space
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue