plugin

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(section *booklit.Section) booklit.Plugin

Types

type Plugin

type Plugin struct {
	Section *booklit.Section
	Base    *baselit.Plugin
	// contains filtered or unexported fields
}

func (*Plugin) B

func (plugin *Plugin) B(content booklit.Content) booklit.Content

func (*Plugin) Bass

func (plugin *Plugin) Bass(code booklit.Content) (booklit.Content, error)
func (plugin *Plugin) BassAutolink(code booklit.Content) (booklit.Content, error)

func (*Plugin) BassLiterate

func (plugin *Plugin) BassLiterate(alternating ...booklit.Content) (booklit.Content, error)

func (*Plugin) Commands

func (plug *Plugin) Commands(commandBlock booklit.Content) (booklit.Content, error)

func (*Plugin) Construction

func (*Plugin) Construction(content booklit.Content) booklit.Content

func (*Plugin) Demo

func (plugin *Plugin) Demo(demoFn string) booklit.Content

func (*Plugin) DemoLiterate added in v0.8.0

func (plugin *Plugin) DemoLiterate(name booklit.Content, literate ...booklit.Content) (booklit.Content, error)

func (*Plugin) Demos added in v0.8.0

func (plugin *Plugin) Demos(demos ...booklit.Content) booklit.Content

func (*Plugin) GroundDocs

func (plugin *Plugin) GroundDocs() (booklit.Content, error)

func (*Plugin) ScriptDocs

func (plugin *Plugin) ScriptDocs() (booklit.Content, error)

func (*Plugin) SideBySide

func (*Plugin) SideBySide(content ...booklit.Content) booklit.Content

func (*Plugin) StdlibDocs

func (plugin *Plugin) StdlibDocs(name string, source booklit.Content) (booklit.Content, error)

func (*Plugin) Syntax

func (plugin *Plugin) Syntax(language string, code booklit.Content) (booklit.Content, error)

func (*Plugin) SyntaxTransform

func (plugin *Plugin) SyntaxTransform(language string, code booklit.Content, chromaStyle *chroma.Style, transformers ...Transformer) (booklit.Content, error)

func (*Plugin) T

func (plugin *Plugin) T(content booklit.Content) booklit.Content

func (*Plugin) Term

func (plug *Plugin) Term(term, definition booklit.Content, literate ...booklit.Content) error

type Transformer

type Transformer struct {
	Pattern   *regexp.Regexp
	Transform func(string) booklit.Content
}

func (Transformer) TransformAll

func (t Transformer) TransformAll(str string) booklit.Sequence

Jump to

Keyboard shortcuts

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