mark

package
v0.0.0-...-15772ec Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindMark = ast.NewNodeKind("Mark")

Functions

func NewMarkHTMLRenderer

func NewMarkHTMLRenderer() renderer.NodeRenderer

func NewMarkParser

func NewMarkParser() parser.InlineParser

Types

type MarkASTNode

type MarkASTNode struct {
	ast.BaseInline
	Content []byte
}

func (*MarkASTNode) Dump

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

func (*MarkASTNode) Kind

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

type MarkExtension

type MarkExtension struct{}

func New

func New() *MarkExtension

func (*MarkExtension) Extend

func (e *MarkExtension) Extend(m goldmark.Markdown)

type MarkHTMLRenderer

type MarkHTMLRenderer struct{}

func (*MarkHTMLRenderer) RegisterFuncs

type MarkParser

type MarkParser struct{}

func (*MarkParser) Parse

func (p *MarkParser) Parse(parent ast.Node, block text.Reader, pc parser.Context) ast.Node

Parse parses the ==highlight== syntax and adds the MarkASTNode to the AST.

func (*MarkParser) Trigger

func (p *MarkParser) Trigger() []byte

Jump to

Keyboard shortcuts

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