Markdown reader: small cosmetic code improvements.
This commit is contained in:
parent
5770ceca36
commit
de6452c0d1
1 changed files with 6 additions and 8 deletions
|
@ -1091,15 +1091,13 @@ endline = try $ do
|
|||
newline
|
||||
notFollowedBy blankline
|
||||
st <- getState
|
||||
if stateStrict st
|
||||
then do notFollowedBy emailBlockQuoteStart
|
||||
notFollowedBy (char '#') -- atx header
|
||||
else return ()
|
||||
when (stateStrict st) $ do
|
||||
notFollowedBy emailBlockQuoteStart
|
||||
notFollowedBy (char '#') -- atx header
|
||||
-- parse potential list-starts differently if in a list:
|
||||
if stateParserContext st == ListItemState
|
||||
then notFollowedBy' (bulletListStart <|>
|
||||
(anyOrderedListStart >> return ()))
|
||||
else return ()
|
||||
when (stateParserContext st == ListItemState) $ do
|
||||
notFollowedBy' bulletListStart
|
||||
notFollowedBy' anyOrderedListStart
|
||||
return Space
|
||||
|
||||
--
|
||||
|
|
Loading…
Add table
Reference in a new issue