package ast

import "github.com/yuin/goldmark-emoji/ast"

Package ast defines AST nodes that represetns emoji extension's elements.

Index

Variables

var KindEmoji = gast.NewNodeKind("Emoji")

KindEmoji is a NodeKind of the emoji node.

Types

type Emoji

type Emoji struct {
	gast.BaseInline

	ShortName []byte
	Value     *definition.Emoji
}

Emoji represents an inline emoji.

func NewEmoji

func NewEmoji(shortName []byte, value *definition.Emoji) *Emoji

NewEmoji returns a new Emoji node.

func (*Emoji) Dump

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

Dump implements Node.Dump.

func (*Emoji) Kind

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

Kind implements Node.Kind.

Source Files

emoji.go

Version
v1.0.6 (latest)
Published
Apr 19, 2025
Platform
js/wasm
Imports
3 packages
Last checked
5 minutes ago

Tools for package owners.