node

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package node holds the syntax tree nodes for a parse minidown document.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Children []Node
}

Block represents a collection of nodes in sequential order.

type Emphasis

type Emphasis struct {
	Style string // "**", "_" etc
	Body  Node
}

Emphasis represents a emphasis node.

type Heading

type Heading struct {
	Scale int // {1: H1, 2: H2} and so on.
	Body  Node
}

Heading represents a heading node.

type Link struct {
	Body   Node
	Target Node
}

Link represents a link in the form: [body](target).

type NewLine

type NewLine struct{}

NewLine represents a blank new line.

type Node

type Node interface{}

Node represents a node in a minidown document graph.

type Tag

type Tag struct {
	Identifier string
	Type       string
}

Tag represents a tag in the form: {{identifier:type}}, where "type" is optional and is "string" by default.

type Text

type Text struct {
	Text string
}

Text represent a block of text.

type Whitespace

type Whitespace struct{}

Whitespace represent a whitespace.

Jump to

Keyboard shortcuts

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