Documentation ¶
Overview ¶
Package baselit provides the base plugin used by all sections by default.
See https://booklit.page/baselit.html for more information.
Index ¶
- func NewPlugin(section *booklit.Section) booklit.Plugin
- type Plugin
- func (plugin Plugin) Aside(content booklit.Content) booklit.Content
- func (plugin Plugin) Aux(content booklit.Content) booklit.Content
- func (plugin Plugin) Bold(content booklit.Content) booklit.Content
- func (plugin Plugin) Code(content booklit.Content) booklit.Content
- func (plugin Plugin) Definition(subject, definition booklit.Content) booklit.Content
- func (plugin Plugin) Definitions(items ...booklit.Content) (booklit.Content, error)
- func (plugin Plugin) Image(path string, description ...string) booklit.Content
- func (plugin Plugin) IncludeSection(path string) error
- func (plugin Plugin) Inset(content booklit.Content) booklit.Content
- func (plugin Plugin) Italic(content booklit.Content) booklit.Content
- func (plugin Plugin) Larger(content booklit.Content) booklit.Content
- func (plugin Plugin) Link(content booklit.Content, target string) booklit.Content
- func (plugin Plugin) List(items ...booklit.Content) booklit.Content
- func (plugin Plugin) OmitChildrenFromTableOfContents()
- func (plugin Plugin) OrderedList(items ...booklit.Content) booklit.Content
- func (plugin Plugin) Reference(tag string, content ...booklit.Content) booklit.Content
- func (plugin Plugin) Section(node ast.Node) error
- func (plugin Plugin) SetPartial(name string, content booklit.Content)
- func (plugin Plugin) SinglePage()
- func (plugin Plugin) Smaller(content booklit.Content) booklit.Content
- func (plugin Plugin) SplitSections()
- func (plugin Plugin) Strike(content booklit.Content) booklit.Content
- func (plugin Plugin) Styled(name string)
- func (plugin Plugin) Subscript(content booklit.Content) booklit.Content
- func (plugin Plugin) Superscript(content booklit.Content) booklit.Content
- func (plugin Plugin) Table(rows ...booklit.Content) (booklit.Content, error)
- func (plugin Plugin) TableOfContents() booklit.Content
- func (plugin Plugin) TableRow(cols ...booklit.Content) booklit.Content
- func (plugin Plugin) Target(tag string, titleAndContent ...booklit.Content) booklit.Content
- func (plugin Plugin) Title(title booklit.Content, tags ...string) error
- func (plugin Plugin) UsePlugin(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (Plugin) Definition ¶ added in v0.6.0
func (Plugin) Definitions ¶ added in v0.6.0
func (Plugin) IncludeSection ¶
func (Plugin) OmitChildrenFromTableOfContents ¶ added in v0.6.0
func (plugin Plugin) OmitChildrenFromTableOfContents()
func (Plugin) OrderedList ¶
func (Plugin) SetPartial ¶ added in v0.6.0
func (Plugin) SinglePage ¶ added in v0.6.0
func (plugin Plugin) SinglePage()
func (Plugin) SplitSections ¶
func (plugin Plugin) SplitSections()
func (Plugin) Superscript ¶ added in v0.6.0
func (Plugin) TableOfContents ¶
Click to show internal directories.
Click to hide internal directories.