node

package
v1.7.0-dev-20191011 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: Apache-2.0 Imports: 0 Imported by: 21

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