mixin markdown::AttrProvider

markdown::AttrProvider

@Js

Source

Extension point for adding/changing attributes on HTML tags for a node.

setAttrs

abstract Void setAttrs(Node node, Str tagName, Str:Str? attrs)

Source

Set the attributes for an HTML tag of the specified node by modyfing the provided map.

This allows to change or even remove default attributes.

The attribute key and values will be escaped (preserving character entities), so don't escape them here, otherwise they will be double-escaped.

This method may be called multiple times for the same node, if the node is rendered using multiple nested tags (e.g. code blocks)