rundown

package
v0.4.0-beta.16 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadedDocument

type LoadedDocument struct {
	Filename string
	Document goldast.Node
	Source   []byte
	Goldmark goldmark.Markdown
	Context  *renderer.Context
}

func (*LoadedDocument) GetSections

func (doc *LoadedDocument) GetSections() []*ast.SectionPointer

func (*LoadedDocument) Render

func (d *LoadedDocument) Render(outputStream io.Writer) error

type LoadedDocuments

type LoadedDocuments struct {
	MasterDocument    *LoadedDocument
	ImportedDocuments []*LoadedDocument
	Context           *renderer.Context
}

func Load

func Load(filename string) (*LoadedDocuments, error)

func LoadString

func LoadString(data string, filename string) (*LoadedDocuments, error)

func (*LoadedDocuments) GetSections

func (doc *LoadedDocuments) GetSections() []*Section

type Section

type Section struct {
	Pointer  *ast.SectionPointer
	Document *LoadedDocument
}

Directories

Path Synopsis
rpc
Package renderer renders the given AST to certain formats.
Package renderer renders the given AST to certain formats.
glamour
Package renderer renders the given AST to certain formats.
Package renderer renders the given AST to certain formats.
term/spinner
Package spinner is a simple package to add a spinner / progress indicator to any terminal application.
Package spinner is a simple package to add a spinner / progress indicator to any terminal application.

Jump to

Keyboard shortcuts

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