icon

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindIcon = gast.NewNodeKind("Icon")

KindIcon is the node kind for inline :icon[...] tokens.

Functions

func NewParser

func NewParser() parser.InlineParser

NewParser returns the inline parser for :icon[...] tokens.

func NewRenderer

func NewRenderer() renderer.NodeRenderer

NewRenderer returns the node renderer for inline :icon[...] tokens.

Types

type Extension

type Extension struct{}

Extension wires the inline :icon[...] parser and renderer into Goldmark.

func (*Extension) Extend

func (e *Extension) Extend(m goldmark.Markdown)

type Icon

type Icon struct {
	gast.BaseInline
	Name  string
	Attrs map[string]string
}

Icon is an inline node for :icon[name attr="val"] tokens.

func (*Icon) Dump

func (n *Icon) Dump(source []byte, level int)

func (*Icon) Kind

func (n *Icon) Kind() gast.NodeKind

Jump to

Keyboard shortcuts

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