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.
- Companion:
- object
class Object
trait Matchable
class Any