Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
Converter wraps goldmark for markdown to HTML conversion
func NewConverter ¶
func NewConverter() *Converter
NewConverter creates a new markdown converter with GFM extensions.
type HeadingRenderer ¶
type HeadingRenderer struct{}
HeadingRenderer renders headings with a clickable anchor link.
func (*HeadingRenderer) RegisterFuncs ¶
func (r *HeadingRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.
type ImageAttributeTransformer ¶
type ImageAttributeTransformer struct{}
ImageAttributeTransformer attaches a trailing {...} attribute list (e.g. {.small-centered}) immediately following an image to that image's node, so the attribute renders on the <img> tag. The brace text itself is removed from the surrounding paragraph.
Click to show internal directories.
Click to hide internal directories.