HtmlWriter
@Js
class HtmlWriter : Obj
HTML writer for markdown rendering
write a newline character if the last character written wasn't a newline
Write the raw string
Write a tag with the given name ("foo" - opening tag, "/foo" - closing tag) with the given attributes
Write the escaped text
This line()
write a newline character if the last character written wasn't a newline
new make(OutStream out)
This raw(Str s)
Write the raw string
This tag(Str name, [Str:Str?]? attrs, Bool empty)
Write a tag with the given name ("foo" - opening tag, "/foo" - closing tag) with the given attributes. If empty is true an empty tag is written (e.g. <img />)
This text(Str text)
Write the escaped text
This w(Str s)