SyntaxRenderer

fun 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 its subtype.

Author

Iaroslav Postovalov

Functions

render
Link copied to clipboard
common
abstract fun render(node: MathSyntax, output: Appendable)
Renders the MathSyntax to output.

Inheritors

LatexSyntaxRenderer
Link copied to clipboard
MathMLSyntaxRenderer
Link copied to clipboard

Extensions

renderWithStringBuilder
Link copied to clipboard
common
fun SyntaxRenderer.renderWithStringBuilder(node: MathSyntax): String
Calls SyntaxRenderer.render with given node and a new StringBuilder instance, and returns its content.