Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 兼容hugo MARKDOWN_LINE = regexp.MustCompile(`^[-|\+]{3}\s*$`) MARKDOWN_MORE = regexp.MustCompile(`^\s*(?i:<!--more-->)\s*$`) MARKDOWN_META = regexp.MustCompile(`^([^:]+):(\s+(.*)|$)`) )
Functions ¶
func NewPongo2Filter ¶ added in v0.1.2
Types ¶
type ChromaRenderer ¶
type ChromaRenderer struct {
// contains filtered or unexported fields
}
func NewChromaRenderer ¶
func NewChromaRenderer(theme string) *ChromaRenderer
func (*ChromaRenderer) RenderFooter ¶
func (r *ChromaRenderer) RenderFooter(w io.Writer, ast *blackfriday.Node)
func (*ChromaRenderer) RenderHeader ¶
func (r *ChromaRenderer) RenderHeader(w io.Writer, ast *blackfriday.Node)
func (*ChromaRenderer) RenderNode ¶
func (r *ChromaRenderer) RenderNode(w io.Writer, node *blackfriday.Node, entering bool) blackfriday.WalkStatus
Click to show internal directories.
Click to hide internal directories.