processor

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeToString added in v0.5.0

func NodeToString(source []byte, n ast.Node) string

func ProcessDirectory

func ProcessDirectory(callbacks Callbacks, directory string) error

func WalkMarkdownSource

func WalkMarkdownSource(callbacks Callbacks, file fs.DirEntry, source []byte)

Types

type Callbacks

type Callbacks struct {
	ShouldProcessFile func(file fs.DirEntry) bool
	IsCodeFenceActive func(lang string) bool
	HandleRenderLaTeX func(slug string, code string)
	HandleLink        func(from string, to string)
	HandleEmbed       func(parent string, child string)
	HandleMetadata    func(slug string, metadata map[string]interface{})
}

Jump to

Keyboard shortcuts

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