HtmlNodeRendererContext

Undocumented in source.

Members

Functions

encodeUrl
string encodeUrl(string url)

@param url to be encoded @return an encoded URL (depending on the configuration)

extendAttributes
Map!(string, string) extendAttributes(Node node, string tagName, Map!(string, string) attributes)

Let extensions modify the HTML tag attributes.

getSoftbreak
string getSoftbreak()

@return HTML that should be rendered for a soft line break

getWriter
HtmlWriter getWriter()

@return the HTML writer to use

render
void render(Node node)

Render the specified node and its children using the configured renderers. This should be used to render child nodes; be careful not to pass the node that is being rendered, that would result in an endless loop.

shouldEscapeHtml
bool shouldEscapeHtml()

@return whether HTML blocks and tags should be escaped or not

Meta