Documentation ¶
Index ¶
- type Color
- type Date
- type Embed
- type Envelope
- type Fragments
- type GeoPoint
- type Group
- type GroupFragments
- type Image
- type Interface
- type Link
- type List
- type Number
- type StructuredText
- func (st StructuredText) AsHtml() string
- func (st StructuredText) AsText() string
- func (st *StructuredText) Decode(_ string, enc interface{}) error
- func (st StructuredText) GetFirstImage() (*block.Image, bool)
- func (st StructuredText) GetFirstParagraph() (*block.Paragraph, bool)
- func (st StructuredText) GetFirstPreformatted() (*block.Preformatted, bool)
- func (st StructuredText) ResolveLinks(r link.Resolver)
- type Text
- type Tree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupFragments ¶
type Image ¶
An image, with multiple views
func (*Image) ResolveLinks ¶
type StructuredText ¶
A structured text fragment is a list of blocks
func NewStructuredText ¶
func NewStructuredText(enc interface{}) (*StructuredText, error)
func (StructuredText) AsHtml ¶
func (st StructuredText) AsHtml() string
Formats the fragment content as html
func (StructuredText) AsText ¶
func (st StructuredText) AsText() string
Formats the fragment content as text
func (*StructuredText) Decode ¶
func (st *StructuredText) Decode(_ string, enc interface{}) error
func (StructuredText) GetFirstImage ¶
func (st StructuredText) GetFirstImage() (*block.Image, bool)
Returns the first image fragment
func (StructuredText) GetFirstParagraph ¶
func (st StructuredText) GetFirstParagraph() (*block.Paragraph, bool)
Returns the first paragraph fragment
func (StructuredText) GetFirstPreformatted ¶
func (st StructuredText) GetFirstPreformatted() (*block.Preformatted, bool)
Returns the first preformatted fragment
func (StructuredText) ResolveLinks ¶
func (st StructuredText) ResolveLinks(r link.Resolver)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.