<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":kmath-ast:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword">fun </span><spanclass="token keyword">interface </span><ahref="index.html">SyntaxRenderer</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-ast/src/commonMain/kotlin/space/kscience/kmath/ast/rendering/SyntaxRenderer.kt#L14">source</a>)</span></span></div><pclass="paragraph">Abstraction of writing <ahref="../-math-syntax/index.html">MathSyntax</a> as a string of an actual markup language. Typical implementation should involve traversal of MathSyntax with handling each subtype.</p><spanclass="kdoc-tag"><h4class="">Author</h4><pclass="paragraph">Iaroslav Postovalov</p></span><h4class="">Inheritors</h4><divclass="table"><divclass="table-row"data-filterable-current=":kmath-ast:dokkaHtmlPartial/commonMain"data-filterable-set=":kmath-ast:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="../-latex-syntax-renderer/index.html">LatexSyntaxRenderer</a></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":kmath-ast:dokkaHtmlPartial/commonMain"data-filterable-set=":kmath-ast:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="../-math-m-l-syntax-renderer/index.html">MathMLSyntaxRenderer</a></div></span></div><div></div></div></div></div></div></div>
</div>
<divclass="tabbedcontent">
<divclass="tabs-section"tabs-section="tabs-section"><buttonclass="section-tab"data-active=""data-togglable="CONSTRUCTOR,TYPE,FUNCTION,PROPERTY">Members</button><buttonclass="section-tab"data-togglable="CONSTRUCTOR,TYPE,FUNCTION,PROPERTY,EXTENSION_PROPERTY,EXTENSION_FUNCTION">Members & Extensions</button></div>
<divclass="copy-popup-wrapper "><spanclass="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<divclass="title">
<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":kmath-ast:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="index.html">SyntaxRenderer</a><spanclass="token punctuation">.</span><ahref="../render-with-string-builder.html"><spanclass="token function">renderWithStringBuilder</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">node<spanclass="token operator">: </span><ahref="../-math-syntax/index.html">MathSyntax</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a></div><divclass="brief "><pclass="paragraph">Calls <ahref="render.html">SyntaxRenderer.render</a> with given <ahref="../render-with-string-builder.html">node</a> and a new <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-string-builder/index.html">StringBuilder</a> instance, and returns its content.</p></div></div></div>