markdown

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser() *Parser

func (*Parser) ExtractTableOfContents

func (p *Parser) ExtractTableOfContents(source []byte) []modules.TableOfContentsItem

ExtractTableOfContents extracts headings from markdown to build a TOC

func (*Parser) Parse

func (p *Parser) Parse(source []byte) ([]byte, error)

func (*Parser) ParseWithFrontmatter

func (p *Parser) ParseWithFrontmatter(source []byte) (content []byte, meta map[string]any, err error)

type ShikiCodeBlockRenderer

type ShikiCodeBlockRenderer struct{}

ShikiCodeBlockRenderer renders code blocks with Shiki highlighting

func (*ShikiCodeBlockRenderer) RegisterFuncs

Jump to

Keyboard shortcuts

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