forgot inline code
This commit is contained in:
parent
4b40fa19ad
commit
ecf11f4aa0
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ inlineText' disallow = choice [try $ strikethrough disallow, try $ bold disallow
|
||||||
plain_text :: Parser s m () -> Parser s m InlineText
|
plain_text :: Parser s m () -> Parser s m InlineText
|
||||||
plain_text disallow = do
|
plain_text disallow = do
|
||||||
first <- optional $ ((notFollowedBy disallow) *> anySingle)
|
first <- optional $ ((notFollowedBy disallow) *> anySingle)
|
||||||
rem <- many ((notFollowedBy (disallow <|> (void $ choice $ (map char "*[~")))) *> anySingle)
|
rem <- many ((notFollowedBy (disallow <|> (void $ choice $ (map char "`*[~")))) *> anySingle)
|
||||||
|
|
||||||
pure $ Text $ T.pack $ case first of
|
pure $ Text $ T.pack $ case first of
|
||||||
Nothing -> []
|
Nothing -> []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue