ast

package
v0.0.0-...-0e5ea14 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ast defines AST nodes that represents extension's elements

Package ast defines AST nodes that represents extension's elements

Index

Constants

This section is empty.

Variables

View Source
var KindHighlight = gast.NewNodeKind("Highlight")

KindHighlight is a NodeKind of the Highlight node.

View Source
var KindStrikethrough = gast.NewNodeKind("Strikethrough")

KindStrikethrough is a NodeKind of the Strikethrough node.

Functions

This section is empty.

Types

type Highlight

type Highlight struct {
	gast.BaseInline
}

A Highlight struct represents an html mark.

func NewHighlight

func NewHighlight() *Highlight

NewHighlight returns a new Highlight node.

func (*Highlight) Dump

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

Dump implements Node.Dump.

func (*Highlight) Kind

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

Kind implements Node.Kind.

type Strikethrough

type Strikethrough struct {
	gast.BaseInline
}

A Strikethrough struct represents a strikethrough of GFM text.

func NewStrikethrough

func NewStrikethrough() *Strikethrough

NewStrikethrough returns a new Strikethrough node.

func (*Strikethrough) Dump

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

Dump implements Node.Dump.

func (*Strikethrough) Kind

func (n *Strikethrough) 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