SyntaxRenderer

fun interface SyntaxRenderer(source)

Abstraction of writing MathSyntax as a string of an actual markup language. Typical implementation should involve traversal of MathSyntax with handling each subtype.

Author

Iaroslav Postovalov

Inheritors

Functions

Link copied to clipboard
abstract fun render(node: MathSyntax, output: Appendable)

Renders the MathSyntax to output.

Link copied to clipboard

Calls SyntaxRenderer.render with given node and a new StringBuilder instance, and returns its content.