mixinafFandoc::DocWriter

afFandoc::DocWriter

@Js

An intelligent interface that gives context to what's being written.

escapeText

Source

virtual Str escapeText(DocElem elem, Str text)

Override to perform text escaping.

parseAndWriteToStr

Source

Str parseAndWriteToStr(Str fandoc)

Writes the given fandoc to a string. Header properties are auto-dectected.

render

Source

abstract Void render(OutStream out, DocElem elem, Str innerText)

Implement to render the given elem to the OutStream.

writeToStr

Source

Str writeToStr(DocElem elem)

Writes the given elem to a string.