laika.api.Transformer
See theTransformer companion object
class Transformer
Performs a transformation from text markup like Markdown or reStructuredText to a target format like HTML as a String.
Example for transforming from Markdown to HTML:
val res: Either[ParserError, String] = Transformer
.from(Markdown)
.to(HTML)
.using(GitHubFlavor)
.build
.transform("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
- Transformer.scala
- Graph
-
- Supertypes
Members list
In this article