Represents a quoted text block.
Represents a block of verbatim qouted code
Represents a header
Base class for ordered and unordered lists, allows for correct handling of paragraphs in lists.
Helper class to build lists.
A markdown block element.
An ordered (i.
Represents a paragraph of text
An unordered list of items.
:? Represents a block of verbatim xml
Represents a horizontal ruler
Parses any line.
Parses the given input as a markdown document and returns the string result
Generic apply method to test a single parser
Generic apply method to run one of our pasers on the given input.
parses all blocks from the given reader
Parses a quoted block.
Parses a quoted block. A quoted block starts with a line starting with "> " followed by more blockquote lines, paragraph lines following blockqoute lines and may be interspersed with empty lines
Parses a blockquote fragment: a block starting with a blockquote line followed by more blockquote or paragraph lines, ends optionally with empty lines
parses a code block
Used to define the output format of parsed blocks and whether verbatim xml blocks are allowed.
accepts one or more empty lines
speed up block processing by looking ahead
Parses a fenced code block: a line starting a fenced code block with
"", followed by any lines that do not stop it, optionally followed
by the ending line. Optionally parsing the stopping line causes the
code block to extend to the end of the document. (This is the github
behavior, where omitting the line closing the code block causes the
block to extend to the end of the document as well)
returns the current indentation string repeated the given number of levels
parses inner blocks (everything excluding xml)
The continuation of a list item: A line indented by four spaces or a tab (a continuation line), followed by more continuation or paragraph lines followed by empty lines
parses a list of lines that may make up the body of a list item
Parses a line of the given type T
returns the current link lookup from the reader always succeeds, never consumes input
a markdown parser
Parses a line of any type *but* T
parses an item in a sorted list
parses an ordered list
accepts zero or more empty lines
parses first level blocks (all blocks, including xml)
a consecutive block of paragraph lines returns the content of the matched block wrapped in
a consecutive block of paragraph lines returns the content of the matched block wrapped in
tags
(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.
parses a horizontal ruler
parses an item in an unsorted list
parses an unordered list
parses a verbatim xml block
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
A parser for the markdown language. Works on pre-parsed lines that can be created by a LineParser.