slate

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Length

func Length(nodes Nodes) int

Types

type Node

type Node struct {
	Children []Node `json:"children"`
	Text     string `json:"text"`
	Type     string `json:"type"`
}

func (Node) ToHTML

func (n Node) ToHTML(styles map[string]string) string

type Nodes

type Nodes []Node

func (Nodes) ToHTML

func (n Nodes) ToHTML(styles map[string]string) string

Jump to

Keyboard shortcuts

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