Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KindImageCompareBlock = gast.NewNodeKind("ImageCompareBlock")
Functions ¶
func NewParser ¶
func NewParser() parser.BlockParser
func NewRenderer ¶
func NewRenderer(assetURL func(string) string) renderer.NodeRenderer
NewRenderer returns the image-compare renderer. assetURL resolves site-absolute image paths; nil leaves them as written.
Types ¶
type Extension ¶
type ImageCompareBlock ¶
type ImageCompareBlock struct {
gast.BaseBlock
Label string
BeforeSrc string
BeforeAlt string
AfterSrc string
AfterAlt string
}
func (*ImageCompareBlock) Dump ¶
func (n *ImageCompareBlock) Dump(source []byte, level int)
func (*ImageCompareBlock) HasImages ¶
func (n *ImageCompareBlock) HasImages() bool
func (*ImageCompareBlock) Kind ¶
func (n *ImageCompareBlock) Kind() gast.NodeKind
Click to show internal directories.
Click to hide internal directories.