0 | module Text.Markdown.String
10 | blankLine = newline <+> some (manyThen newline space)
14 | headingSym = some (is '#')
39 | horizontalRules : Lexer
42 | separator = (blankLine <|> newline)
45 | <+> (atLeast3 '*' <|> atLeast3 '-' <|> atLeast3 '_')
46 | <+> manyUntil newline space
49 | atLeast3 : Char -> Lexer
50 | atLeast3 c = is c <+> is c <+> some (is c)
62 | boldSym = count (exactly 2) (is '*')
67 | surround (is '[') (is ']') any
68 | <+> surround (is '(') (is ')') any
74 | htmlOpenTag = surround (is '<') (is '>') alphaNum
77 | htmlCloseTag : Lexer
78 | htmlCloseTag = surround (exact "</") (is '>') alphaNum
82 | pre = quote (is '`') (non newline)
86 | codeFence = quote (exact "```") any
92 | text = (isNot '\n') <+> manyUntil (oneOf "_*\n<>#[]()`") any