parser

package
v0.0.0-...-9a26f65 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindMention = ast.NewNodeKind("Mention")

Functions

func NewConfluenceTagParser

func NewConfluenceTagParser() parser.InlineParser

NewConfluenceTagParser returns an inline parser that parses <ac:* /> and <ri:* /> tags to ensure that Confluence specific tags are parsed as ast.KindRawHtml so they are not escaped at render time. The parser must be registered with a higher priority than goldmark's linkParser. Otherwise, the linkParser would parse the <ac:* /> tags.

func NewMentionParser

func NewMentionParser() parser.InlineParser

Types

type ConfluenceIDs

type ConfluenceIDs struct {
	Values map[string]bool
}

func (*ConfluenceIDs) Put

func (s *ConfluenceIDs) Put(value []byte)

type Mention

type Mention struct {
	ast.BaseInline
	Name []byte
}

func NewMention

func NewMention(name []byte) *Mention

func (*Mention) Dump

func (m *Mention) Dump(source []byte, level int)

func (*Mention) Kind

func (m *Mention) Kind() ast.NodeKind

Jump to

Keyboard shortcuts

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