Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KindVimeo = ast.NewNodeKind("Vimeo")
KindVimeo is a NodeKind of the Vimeo node.
View Source
var KindYouTube = ast.NewNodeKind("YouTube")
KindYouTube is a NodeKind of the YouTube node.
Functions ¶
func NewHTMLRenderer ¶
func NewHTMLRenderer() renderer.NodeRenderer
NewHTMLRenderer builds a new HTMLRenderer with given options and returns it.
Types ¶
type HTMLRenderer ¶
type HTMLRenderer struct{}
HTMLRenderer struct is a renderer.NodeRenderer implementation for the extension.
func (*HTMLRenderer) RegisterFuncs ¶
func (r *HTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements NodeRenderer.RegisterFuncs.
type Option ¶
type Option func(*embedExtension)
Option is a functional option type for this extension.
type Vimeo ¶
Vimeo struct represents a Vimeo Video embed of the markdown text.
type YouTube ¶
YouTube struct represents a YouTube Video embed of the Markdown text.
func NewYouTube ¶
NewYouTube returns a new YouTube node.
Click to show internal directories.
Click to hide internal directories.