markdown

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

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 New

func New(conf config.Config) page.Reader

func NewPongo2Filter added in v0.1.2

func NewPongo2Filter(conf config.Config) pongo2.FilterFunction

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL