const class markdown::Parser
sys::Obj markdown::Parser
@Js
Parse input text into a tree of nodes.
The parser is thread-safe meaning the same parser can be shared by multiple actors.
- builder
-
static ParserBuilder builder()Obtain a builder for configuring the parser
- make
-
static new make()Get a parser with all the default configuration
- parse
-
Convenience for
parseStream(text.in) - parseFile
-
Convenience to parse a file into a Document. If source span parsing is enabled the nodes will have access to the file location using Node.loc.
- parseStream
-
Document parseStream(InStream in)Parse the contents of the input stream into a tree of nodes.
doc := Parser().parse("Hello *Markdown*!")