classafFandoc::HtmlDocWriter

sys::Obj
  afFandoc::HtmlDocWriter : fandoc::DocWriter

@Js

cssClasses

Source

DocNodeId:Str cssClasses := ...

fullyLoaded

Source

static HtmlDocWriter fullyLoaded()

A HTML writer that performs pre-block-processing for tables and syntax colouring.

(EveryLayout processors are preferred over BootStrap.)

htmlNode

Source

protected HtmlNode? htmlNode

imageProcessors

Source

ElemProcessor[] imageProcessors := ElemProcessor[,]

invalidLinkProcessor

Source

ElemProcessor? invalidLinkProcessor

linkProcessors

Source

ElemProcessor[] linkProcessors := ElemProcessor[,]

linkResolvers

Source

LinkResolver[] linkResolvers := LinkResolver[,]

log

Source

Log log := this.typeof().pod().log

original

Source

static HtmlDocWriter original()

A simple HTML writer that mimics the original; no invalid links and no pre-block-processing.

paraProcessors

Source

ElemProcessor[] paraProcessors := ElemProcessor[,]

parse

Source

Doc parse(Str fandoc, Str? loc := null)

Parses the given string into a Fandoc document. Document headers are automatically parsed if they're supplied. Parsing errors are inserted into the start of the documents.

parseAndWriteToStr

Source

Str parseAndWriteToStr(Str fandoc, Str? loc := null)

Writes the given fandoc to a string.

preProcessors

Source

Str:PreProcessor preProcessors := [Str:PreProcessor][:]

processImage

Source

virtual Obj? processImage(HtmlElem elem)

Source

virtual Obj? processLink(HtmlElem elem)

processPara

Source

virtual Obj? processPara(HtmlElem elem)

processPre

Source

virtual Obj? processPre(HtmlElem elem)

Source

virtual Uri? resolveLink(HtmlElem html, Str url)

Calls the LinkResolvers looking for valid links.

str

Source

protected StrBuf str := StrBuf.<ctor>()

toHtml

Source

Str toHtml()

toHtmlNode

Source

virtual HtmlNode toHtmlNode(DocElem elem)

writeToStr

Source

Str writeToStr(DocElem elem)

Writes the given elem to a string.