Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeadingStyle ¶
type NodeRendererFunc ¶
type NodeRendererFunc func(w Writer, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)
NodeRendererFunc is a function that renders a given node.
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer holds all functions to render
func (*Renderer) AddOptions ¶
AddOptions adds given option to this renderer.
type Styled ¶
type Styled interface { NewSetFontStyleOption(string) func(style any) error NewAddFontStyleOption(string) func(style any) error NewFontFamilyOption(string) func(style any) error NewFontSizeOption(float64) func(style any) error NewTextColorOption(*color.Color) func(style any) error NewFillColorOption(*color.Color) func(style any) error NewAddMarginOption(float64) func(style any) error NewAddCellMarginOption(float64) func(style any) error NewSetCellMarginOption(float64) func(style any) error NewPaddingOption(float64) func(style any) error WithStyle(...func(style any) error) ResetStyle() }
Styled describes what kind of behaviour we expect from styled elements
type WithBreaks ¶
type WithBreaks interface { LineBreak() ThematicBreak() }
WithBreaks describes what kind of behaviour we expect from breaks
Click to show internal directories.
Click to hide internal directories.