SyntaxRenderer

fun interface SyntaxRenderer

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

Functions

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

Renders the MathSyntax to output.

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard

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

Sources

Link copied to clipboard