Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CalloutAttributeFilter = html.GlobalAttributeFilter
CalloutAttributeFilter defines attribute names which callout elements can have
var KindCallout = ast.NewNodeKind("Callout")
KindCallout is a NodeKind of the Callout node.
Functions ¶
func NewCalloutParser ¶
func NewCalloutParser() parser.BlockParser
NewCalloutParser returns a new BlockParser for callouts.
Types ¶
type Callout ¶
A Callout struct represents a GitHub-style callout block.
func (*Callout) SetContent ¶
AppendContent appends content to the callout.
type Extender ¶
type Extender struct {
// contains filtered or unexported fields
}
Extender allows you to use GitHub-style callouts in markdown
Callouts are blockquotes with special syntax:
> [!NOTE] > This is a note
> [!TIP] > This is a tip
> [!IMPORTANT] > This is important
> [!WARNING] > This is a warning
> [!CAUTION] > This is a caution
type Renderer ¶
type Renderer struct {
Config
}
A Renderer struct is an implementation of renderer.NodeRenderer that renders nodes as (X)HTML.
func (*Renderer) RegisterFuncs ¶
func (r *Renderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements NodeRenderer.RegisterFuncs.