markdown

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: BSD-3-Clause Imports: 22 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(opt *Option) *mdParser

func NewHighlightExtension added in v0.1.6

func NewHighlightExtension(opt *Option) goldmark.Extender

func NewTocExtension added in v0.1.6

func NewTocExtension(opt *Option) goldmark.Extender

func NewWithContext added in v0.1.6

func NewWithContext(ctx *core.Context) *mdParser

Types

type Heading added in v0.1.6

type Heading = parser.Heading

type Option added in v0.1.6

type Option struct {
	parser.MarkupOption
}

Jump to

Keyboard shortcuts

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