const class markdown::Parser

sys::Obj
  markdown::Parser

@Js

Source

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()

Source

Obtain a builder for configuring the parser

make

static new make()

Source

Get a parser with all the default configuration

parse

Document parse(Str text)

Source

Convenience for parseStream(text.in)

parseFile

Document parseFile(File file)

Source

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)

Source

Parse the contents of the input stream into a tree of nodes.

doc := Parser().parse("Hello *Markdown*!")