linkbutton

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindLinkButtonBlock = gast.NewNodeKind("LinkButtonBlock")

Functions

func NewParser

func NewParser() parser.BlockParser

func NewRenderer

func NewRenderer(blockedSchemes []string, lr *linkrender.Renderer) renderer.NodeRenderer

Types

type Extension

type Extension struct {
	BlockedSchemes []string
	LinkRenderer   *linkrender.Renderer
}

func (*Extension) Extend

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

type LinkButtonBlock

type LinkButtonBlock struct {
	gast.BaseBlock
	Href          string
	Variant       string
	Icon          string
	IconPlacement string
	Size          string
	Content       string
	ColonCount    int
	Block         bool
	Disabled      bool
	Center        bool
	NewTab        *bool
	// HasLabel records whether the opening tag carried an explicit label, so
	// Continue knows to ignore body lines. It lives on the node because the
	// parser instance is shared across blocks (and across pages rendered
	// concurrently).
	HasLabel bool
}

func (*LinkButtonBlock) Dump

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

func (*LinkButtonBlock) Kind

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

Jump to

Keyboard shortcuts

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