custom

package
v0.0.0-...-208560e Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: AGPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindDecisionItem = ast.NewNodeKind("DecisionItem")

KindDecisionItem is a NodeKind of the DecisionItem node.

View Source
var KindDecisionList = ast.NewNodeKind("DecisionList")

KindDecisionList is a NodeKind of the DecisionList node.

View Source
var KindPanel = ast.NewNodeKind("Panel")

KindPanel is a NodeKind of the Panel node.

View Source
var KindSpan = ast.NewNodeKind("Span")

KindSpan is a NodeKind of the Span node.

View Source
var KindTable = ast.NewNodeKind("Table")

KindTable is a NodeKind of the Table node.

Functions

func NewDecisionItemParser

func NewDecisionItemParser() parser.BlockParser

NewDecisionItemParser returns a new BlockParser that parses decisionItems.

func NewDecisionListParser

func NewDecisionListParser() parser.BlockParser

NewDecisionListParser returns a new BlockParser that parses decisionLists.

func NewPanelParser

func NewPanelParser() parser.BlockParser

NewPanelParser returns a new BlockParser that parses panels.

func NewSpanParser

func NewSpanParser() parser.InlineParser

NewSpanParser returns a new InlineParser that can parse spans with attributes, like [foo bar]{.myClass}. See https://talk.commonmark.org/t/consistent-attribute-syntax/272. This parser must take precedence over the parser.LinkParser.

func NewTableParser

func NewTableParser() parser.BlockParser

NewTableParser returns a new BlockParser that parses tables. This parser must take precedence over the parser.ThematicBreakParser.

Types

type DecisionItem

type DecisionItem struct {
	ast.BaseBlock
}

A DecisionItem struct represents a decisionItem in atlaskit.

func NewDecisionItem

func NewDecisionItem() *DecisionItem

NewDecisionItem returns a new DecisionItem node.

func (*DecisionItem) Dump

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

Dump implements Node.Dump.

func (*DecisionItem) Kind

func (n *DecisionItem) Kind() ast.NodeKind

Kind implements Node.Kind.

type DecisionList

type DecisionList struct {
	ast.BaseBlock
}

A DecisionList struct represents a decisionList in atlaskit.

func NewDecisionList

func NewDecisionList() *DecisionList

NewDecisionList returns a new DecisionList node.

func (*DecisionList) Dump

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

Dump implements Node.Dump.

func (*DecisionList) Kind

func (n *DecisionList) Kind() ast.NodeKind

Kind implements Node.Kind.

type Panel

type Panel struct {
	ast.BaseBlock
	PanelType string
}

A Panel struct represents a panel in atlaskit.

func NewPanel

func NewPanel(panelType string) *Panel

NewPanel returns a new Panel node.

func (*Panel) Dump

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

Dump implements Node.Dump.

func (*Panel) Kind

func (n *Panel) Kind() ast.NodeKind

Kind implements Node.Kind.

type Span

type Span struct {
	ast.BaseInline
	Value string
}

A Span struct represents a span of text with attributes.

func NewSpan

func NewSpan(value string) *Span

NewSpan returns a new Span node.

func (*Span) Dump

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

Dump implements Node.Dump.

func (*Span) Kind

func (n *Span) Kind() ast.NodeKind

Kind implements Node.Kind.

type Table

type Table struct {
	ast.BaseBlock
}

A Table struct represents a table in atlaskit.

func NewTable

func NewTable() *Table

NewTable returns a new Table node.

func (*Table) Dump

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

Dump implements Node.Dump.

func (*Table) Kind

func (n *Table) Kind() ast.NodeKind

Kind implements Node.Kind.

type TableType

type TableType int

Jump to

Keyboard shortcuts

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