mention

package
v0.0.0-...-24a4c23 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

KindMention is a NodeKind of the Mention node.

View Source
var Mention = mention{}

Functions

func NewMentionHTMLRenderer

func NewMentionHTMLRenderer(opts ...html.Option) renderer.NodeRenderer

func NewMentionParser

func NewMentionParser() parser.InlineParser

Types

type MentionNode

type MentionNode struct {
	gast.BaseInline
	Who string
}

func NewMentionNode

func NewMentionNode(username string) *MentionNode

NewStrikethrough returns a new Mention node.

func (*MentionNode) Dump

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

Dump implements Node.Dump.

func (*MentionNode) Kind

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

Kind implements Node.Kind.

Jump to

Keyboard shortcuts

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