printMarkdown

fun ReportNode.Document.printMarkdown(out: PrintWriter = PrintWriter(System.out, true), ctx: RenderContext? = null)(source)

Renders this document as Markdown and writes it to out.

Defaults to System.out with auto-flush:

model.toReport().printMarkdown()          // → System.out
model.toReport().printMarkdown(myWriter) // → any PrintWriter

Parameters

out

target writer; defaults to a PrintWriter wrapping System.out

ctx

shared render configuration