shortcode

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Extension = &shortcode{}
View Source
var (
	KindShortcode = ast.NewNodeKind("Shortcode")
)

Functions

func RegisterHandler

func RegisterHandler(name string, handler ShortcodeHandler)

Types

type ShortcodeHandler

type ShortcodeHandler interface {
	Handle(name string, attributes map[string]any, body string) (string, error)
}

func HandleFunc

func HandleFunc(fn func(string, map[string]any, string) (string, error)) ShortcodeHandler

Jump to

Keyboard shortcuts

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