Documentation ¶
Index ¶
- Variables
- func RegisterPlugin(name string, factory PluginFactory)
- type Block
- type Content
- type Link
- type List
- type Paragraph
- type Plugin
- type PluginFactory
- type PluginFactoryFunc
- type Preformatted
- type Reference
- type Section
- func (con *Section) AnchorTags() []Tag
- func (con *Section) Contains(sub *Section) bool
- func (con *Section) FindTag(tagName string) (Tag, bool)
- func (con *Section) HasAnchors() bool
- func (con *Section) IsSentence() bool
- func (con *Section) Number() string
- func (con *Section) SetTitle(title Content, tags ...string)
- func (con *Section) String() string
- func (con *Section) Top() *Section
- func (con *Section) UsePlugin(pf PluginFactory)
- func (con *Section) Visit(visitor Visitor) error
- type Sequence
- type String
- type Style
- type Styled
- type TableOfContents
- type Tag
- type Target
- type Visitor
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "0.0.0-dev"
overridden via linker flags
Functions ¶
func RegisterPlugin ¶
func RegisterPlugin(name string, factory PluginFactory)
Types ¶
type Block ¶
func (Block) IsSentence ¶
type List ¶
func (List) IsSentence ¶
type PluginFactory ¶
func LookupPlugin ¶
func LookupPlugin(name string) (PluginFactory, bool)
type PluginFactoryFunc ¶
func (PluginFactoryFunc) NewPlugin ¶
func (f PluginFactoryFunc) NewPlugin(s *Section) Plugin
type Preformatted ¶
type Preformatted []Content
func (Preformatted) IsSentence ¶
func (con Preformatted) IsSentence() bool
func (Preformatted) String ¶
func (con Preformatted) String() string
func (Preformatted) Visit ¶
func (con Preformatted) Visit(visitor Visitor) error
type Reference ¶
func (*Reference) IsSentence ¶
type Section ¶
type Section struct { Path string Title Content Body Content PrimaryTag Tag Tags []Tag Parent *Section Children []*Section SplitSections bool PluginFactories []PluginFactory Plugins []Plugin }
func (*Section) AnchorTags ¶
func (*Section) HasAnchors ¶
func (*Section) IsSentence ¶
func (*Section) UsePlugin ¶
func (con *Section) UsePlugin(pf PluginFactory)
type TableOfContents ¶
type TableOfContents struct {
Section *Section
}
func (TableOfContents) IsSentence ¶
func (con TableOfContents) IsSentence() bool
func (TableOfContents) String ¶
func (con TableOfContents) String() string
func (TableOfContents) Visit ¶
func (con TableOfContents) Visit(visitor Visitor) error
type Target ¶
func (Target) IsSentence ¶
type Visitor ¶
type Visitor interface { VisitString(String) error VisitSequence(Sequence) error VisitReference(*Reference) error VisitLink(Link) error VisitSection(*Section) error VisitParagraph(Paragraph) error VisitTableOfContents(TableOfContents) error VisitPreformatted(Preformatted) error VisitStyled(Styled) error VisitTarget(Target) error VisitBlock(Block) error VisitList(List) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.