Documentation ¶
Index ¶
- Variables
- func RegisterPlugin(name string, factory PluginFactory)
- type Aux
- type Content
- type Definition
- type Definitions
- type Image
- type Link
- type List
- type Paragraph
- type Partials
- type Plugin
- type PluginFactory
- type Preformatted
- type Reference
- type Section
- func (con *Section) AnchorTags() []Tag
- func (con *Section) Contains(sub *Section) bool
- func (con *Section) Depth() int
- func (con *Section) FindTag(tagName string) []Tag
- func (con *Section) HasAnchors() bool
- func (con *Section) IsFlow() bool
- func (con *Section) IsOrHasChild(sub *Section) bool
- func (con *Section) Number() string
- func (con *Section) PageDepth() int
- func (con *Section) Partial(name string) Content
- func (con *Section) SetPartial(name string, value Content)
- func (con *Section) SetTag(name string, title Content, optionalAnchor ...string)
- func (con *Section) SetTagAnchored(name string, title Content, content Content, anchor string)
- func (con *Section) SetTitle(title Content, tags ...string)
- func (con *Section) SplitSectionsPrevented() bool
- 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 Table
- type TableOfContents
- type Tag
- type Target
- type Visitor
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBrokenReference = errors.New("broken reference")
View Source
var Version = "0.0.0-dev"
overridden via linker flags
Functions ¶
func RegisterPlugin ¶
func RegisterPlugin(name string, factory PluginFactory)
Types ¶
type Definition ¶ added in v0.6.0
type Definitions ¶ added in v0.6.0
type Definitions []Definition
func (Definitions) IsFlow ¶ added in v0.6.0
func (con Definitions) IsFlow() bool
func (Definitions) String ¶ added in v0.6.0
func (con Definitions) String() string
func (Definitions) Visit ¶ added in v0.6.0
func (con Definitions) Visit(visitor Visitor) error
type PluginFactory ¶
func LookupPlugin ¶
func LookupPlugin(name string) (PluginFactory, bool)
type Preformatted ¶
type Preformatted []Content
func (Preformatted) IsFlow ¶ added in v0.6.0
func (con Preformatted) IsFlow() bool
func (Preformatted) String ¶
func (con Preformatted) String() string
func (Preformatted) Visit ¶
func (con Preformatted) Visit(visitor Visitor) error
type Section ¶
type Section struct { Path string Title Content Body Content PrimaryTag Tag Tags []Tag Parent *Section Children []*Section Style string Partials Partials SplitSections bool PreventSplitSections bool ResetDepth bool OmitChildrenFromTableOfContents bool PluginFactories []PluginFactory Plugins []Plugin }
func (*Section) AnchorTags ¶
func (*Section) HasAnchors ¶
func (*Section) IsOrHasChild ¶ added in v0.6.0
func (*Section) SetPartial ¶ added in v0.6.0
func (*Section) SetTagAnchored ¶ added in v0.6.0
func (*Section) SplitSectionsPrevented ¶ added in v0.6.0
func (*Section) UsePlugin ¶
func (con *Section) UsePlugin(pf PluginFactory)
type Style ¶
type Style string
const ( StyleVerbatim Style = "verbatim" StyleItalic Style = "italic" StyleBold Style = "bold" StyleLarger Style = "larger" StyleSmaller Style = "smaller" StyleStrike Style = "strike" StyleSuperscript Style = "superscript" StyleSubscript Style = "subscript" StyleInset Style = "inset" StyleAside Style = "aside" )
type TableOfContents ¶
type TableOfContents struct {
Section *Section
}
func (TableOfContents) IsFlow ¶ added in v0.6.0
func (con TableOfContents) IsFlow() bool
func (TableOfContents) String ¶
func (con TableOfContents) String() string
func (TableOfContents) Visit ¶
func (con TableOfContents) Visit(visitor Visitor) error
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 VisitImage(Image) error VisitList(List) error VisitTable(Table) error VisitDefinitions(Definitions) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.