laika.api.MarkupParser
See theMarkupParser companion object
class MarkupParser
Performs a parse operation from text markup to a document tree without a subsequent render operation.
In cases where a render operation should follow immediately, it is more convenient to use a laika.api.Transformer instead which combines a parse and a render operation directly.
Example for parsing Markdown:
val res: Either[ParserError, Document] = MarkupParser
.of(Markdown)
.using(GitHubFlavor)
.build
.parse("hello *there*)
This is a pure API that does not perform any side-effects. For additional options like File and Stream I/O, templating or parallel processing, use the corresponding builders in the laika-io module.
Attributes
- Companion
- object
- Source
- MarkupParser.scala
- Graph
-
- Supertypes
Members list
In this article