Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AdmonitionAttributeFilter = html.GlobalAttributeFilter
HeadingAttributeFilter defines attribute names which heading elements can have
var KindAdmonition = ast.NewNodeKind("Admonition")
KindAdmonition is a NodeKind of the Admonition node.
Functions ¶
func NewAdmonitionParser ¶
func NewAdmonitionParser() parser.BlockParser
NewAdmonitionParser returns a new BlockParser that parses admonition blocks.
Types ¶
type Admonition ¶
A Admonition struct represents a fenced code block of Markdown text.
func (*Admonition) Dump ¶
func (n *Admonition) Dump(source []byte, level int)
Dump implements Node.Dump .
type Extender ¶
type Extender struct {
// contains filtered or unexported fields
}
This extender allows you to use admonitions in markdown
Admonitions are a markdown extension that allows you to style markdown as nice boxes with a title. This is done by way of wrapping other elements in divs with classes starting with "adm-"
!!!note This is the title {.some-additional-class} This is the admonition
## with a header
!!!danger Nesting is possible! ```R X <- as.data.table(iris) X[Species != "virginica", mean(Sepal.Length), Species] ``` !!! !!!
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 .