tabs

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindTabItem = gast.NewNodeKind("TabItem")

KindTabItem is the NodeKind for TabItem.

View Source
var KindTabsBlock = gast.NewNodeKind("TabsBlock")

KindTabsBlock is the NodeKind for TabsBlock.

Functions

func NewParser

func NewParser() parser.BlockParser

NewParser returns a new tabs block parser.

func NewRenderer

func NewRenderer() renderer.NodeRenderer

NewRenderer returns a new tabs renderer.

Types

type Extension

type Extension struct{}

Extension is a goldmark extension that adds tabs block support.

func (*Extension) Extend

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

Extend implements goldmark.Extender.

type TabItem

type TabItem struct {
	gast.BaseBlock
	Label string
	Index int // 0-based tab index
}

TabItem is an AST node representing a single tab within a TabsBlock.

func (*TabItem) Dump

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

Dump implements ast.Node.Dump.

func (*TabItem) Kind

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

Kind implements ast.Node.Kind.

type TabsBlock

type TabsBlock struct {
	gast.BaseBlock
	ID int64
}

TabsBlock is an AST node representing a tabs container.

func (*TabsBlock) Dump

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

Dump implements ast.Node.Dump.

func (*TabsBlock) Kind

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

Kind implements ast.Node.Kind.

Jump to

Keyboard shortcuts

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