type

TextWriter

@Js
class TextWriter : Obj

Text writer for markdown rendering

constructors

methods

block
colon
line
popTight

Remove the last "tight" setting from the top of the stack.

pushTight

Change whether blocks are tight or loose.

resetBlock
whitespace
write
writeChar
writeStripped

Slot Details

block

This block()

colon

This colon()

line

This line()

make

new make(OutStream out, LineBreakRendering lineBreakRendering := LineBreakRendering.compact)

popTight

Void popTight()

Remove the last "tight" setting from the top of the stack.

pushTight

Void pushTight(Bool tight)

Change whether blocks are tight or loose. Loose is the default where blocks are separated by a blank line. Tight is where blocks are not spearated by a blank line. Tight blocks are used in lists, if there are no blank lines within the list.

Note that changing this does not affect block separators that have already been enqueued with block; only future ones.

resetBlock

This resetBlock()

whitespace

This whitespace()

write

This write(Str s)

writeChar

This writeChar(Int ch)

writeStripped

This writeStripped(Str s)