Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EnableShortcodes context key for indicates if shortcodes enabled EnableShortcodes = parser.NewContextKey() // UsedShortcodesKey store list of used shortcodes on page UsedShortcodesKey = parser.NewContextKey() )
View Source
var ShortCodeNodeKinds = map[string]gast.NodeKind{ // contains filtered or unexported fields }
ShortCodeNodeKinds mapping `keyword -> NodeKind`
View Source
var TableOfContentsShortcode = &tocExtender{}
TableOfContentsShortcode allows to insert Table Of Contents with {{ toc }} shortcode
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
Render renders markdown to html
type PagePreviewText ¶
PagePreviewText contains title of document and beginning of content
type ShortCodeNode ¶
type ShortCodeNode struct { gast.BaseInline // contains filtered or unexported fields }
A ShortCodeNode struct represents a tweet ast node
func (*ShortCodeNode) Dump ¶
func (n *ShortCodeNode) Dump(source []byte, level int)
Dump for ShortCodeNode
func (*ShortCodeNode) Kind ¶
func (n *ShortCodeNode) Kind() gast.NodeKind
Kind implements Node.Kind.
Click to show internal directories.
Click to hide internal directories.