shortcode

package
v0.0.0-...-dac09ee Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindShortCode = ast.NewNodeKind("ShortCode")
View Source
var KindShortCodeBlock = ast.NewNodeKind("ShortCodeBlock")

Functions

func RegisterShortCode

func RegisterShortCode(name string, shortcode ShortCode)

Types

type ShortCode

type ShortCode struct {
	Render  func(Markdown) template.HTML
	Default string
}

type ShortCodeBlock

type ShortCodeBlock struct {
	ast.FencedCodeBlock
	// contains filtered or unexported fields
}

func (*ShortCodeBlock) Kind

func (s *ShortCodeBlock) Kind() ast.NodeKind

type ShortCodeEx

type ShortCodeEx struct{}

func (ShortCodeEx) Init

func (ShortCodeEx) Init()

func (ShortCodeEx) Name

func (ShortCodeEx) Name() string

type ShortCodeNode

type ShortCodeNode struct {
	ast.BaseBlock
	// contains filtered or unexported fields
}

func (*ShortCodeNode) Dump

func (s *ShortCodeNode) Dump(source []byte, level int)

func (*ShortCodeNode) Kind

func (h *ShortCodeNode) Kind() ast.NodeKind

Jump to

Keyboard shortcuts

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