Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseBlock ¶
type BaseBlock struct { Type string `json:"type"` Text string `json:"text"` Spans []span.SpanInterface `json:"spans"` }
Common block properties
func (*BaseBlock) FormatHtmlText ¶
Formats the block content as html, without enclosing tags
type Heading ¶
type Heading struct {
BaseBlock
}
A heading (h1, h2, h3, h4) block
func (*Heading) ParentHtmlTag ¶
type ListItem ¶
type ListItem struct {
BaseBlock
}
A list block (unordered)
func (*ListItem) ParentHtmlTag ¶
type OrderedListItem ¶
type OrderedListItem struct {
BaseBlock
}
A list block (ordered)
func (*OrderedListItem) AsHtml ¶
func (l *OrderedListItem) AsHtml() string
func (*OrderedListItem) Decode ¶
func (l *OrderedListItem) Decode(enc interface{}) error
func (*OrderedListItem) ParentHtmlTag ¶
func (l *OrderedListItem) ParentHtmlTag() string
type Paragraph ¶
type Paragraph struct {
BaseBlock
}
A paragraph block
func (*Paragraph) ParentHtmlTag ¶
type Preformatted ¶
type Preformatted struct {
BaseBlock
}
A preformatted block
func (*Preformatted) AsHtml ¶
func (p *Preformatted) AsHtml() string
func (*Preformatted) Decode ¶
func (p *Preformatted) Decode(enc interface{}) error
func (*Preformatted) ParentHtmlTag ¶
func (p *Preformatted) ParentHtmlTag() string
Click to show internal directories.
Click to hide internal directories.