Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderAttributes ¶
func RenderAttributes(w hugio.FlexiWriter, skipClass bool, attributes ...Attribute)
RenderAttributes Render writes the attributes to the given as attributes to an HTML element. This is used for the default codeblock renderering. This performs HTML esacaping of string attributes.
Types ¶
type Attribute ¶
func (Attribute) ValueString ¶
type AttributesHolder ¶
type AttributesHolder struct {
// contains filtered or unexported fields
}
func New ¶
func New(astAttributes []ast.Attribute, ownerType AttributesOwnerType) *AttributesHolder
func (*AttributesHolder) Attributes ¶
func (a *AttributesHolder) Attributes() map[string]any
func (*AttributesHolder) Options ¶
func (a *AttributesHolder) Options() map[string]any
type AttributesOwnerType ¶
type AttributesOwnerType int
const ( AttributesOwnerGeneral AttributesOwnerType = iota AttributesOwnerCodeBlockChroma AttributesOwnerCodeBlockCustom )
Click to show internal directories.
Click to hide internal directories.