we munch whole lines (OM NOM NOM)
Determines if xml blocks may be included verbatim.
Returns the first char in the given string or a newline if the string is empty.
Finds the char in the given line that is the best indication of what kind of markdown line this is.
Turns a list of inner lines (the payloads of the lines making up the block) into line tokens.
Parses tokens that may occur inside a block.
Parses Markdown Lines.
Parses a link definition.
Tries to parse an URL from the next line if necessary.
Parses any line that does not start with a closing XML element.
Returns a parser based on the given line parser.
Parses link definitions and verbatim xml blocks
(Changed in version 2.9.0) The
p0 call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.
Simple preprocessing: split the input at each newline.
Tokenizes preprocessed lines read from a line reader.
Tokenizes a preprocessed Markdown document.
Tokenizes a whole Markdown document.
Parses first level line tokens, i.e.
Very dumb parser for XML chunks.
Parses a line beginning with a closing XML tag.
The start of a verbatim XML chunk: any line starting directly with an XML element