markdown

package
v1.113.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindEmoji = ast.NewNodeKind("Emoji")

Functions

func Convert

func Convert(content []byte) []byte

func ConvertSafeTemplate

func ConvertSafeTemplate(content string) template.HTML

func NewEmojiParser

func NewEmojiParser() parser.InlineParser

func NewEmojiRenderer

func NewEmojiRenderer() renderer.NodeRenderer

Types

type Emoji

type Emoji struct {
	ast.BaseInline
	Value []byte
}

func NewEmoji

func NewEmoji(value []byte) *Emoji

func (*Emoji) Dump

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

func (*Emoji) Kind

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

type EmojiExtention

type EmojiExtention struct {
}

func (EmojiExtention) Extend

func (EmojiExtention) Extend(m goldmark.Markdown)

type EmojiRenderer

type EmojiRenderer struct {
}

func (*EmojiRenderer) RegisterFuncs

func (r *EmojiRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)

RegisterFuncs implements NodeRenderer.RegisterFuncs.

Jump to

Keyboard shortcuts

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