Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockquote ¶
type Blockquote struct {
// contains filtered or unexported fields
}
Blockquote represents a gemtext blockquote
func NewBlockquote ¶
func NewBlockquote(l []byte) *Blockquote
func (*Blockquote) Bytes ¶
func (l *Blockquote) Bytes() []byte
func (*Blockquote) Type ¶
func (l *Blockquote) Type() LineType
type EmptyLine ¶
type EmptyLine struct {
// contains filtered or unexported fields
}
EmptyLine represents an empty line
func NewEmptyLine ¶
func NewEmptyLine() *EmptyLine
type Heading ¶
type Heading struct { Level int // contains filtered or unexported fields }
Heading represents a gemtext heading
func NewHeading ¶
type Line ¶
type Line interface { //Type returns the LineType of the line Type() LineType //Bytes returns the raw bytes of the line Bytes() []byte }
Line represents a single line of a gemtext document
type ListItem ¶
type ListItem struct {
// contains filtered or unexported fields
}
ListItem represents a gemtext list item
func NewListItem ¶
type Preformatted ¶
type Preformatted struct { AltText string // contains filtered or unexported fields }
PreformattedText represents a preformatted line of text
func NewPreformattedText ¶
func NewPreformattedText(l []byte, alt string) *Preformatted
func (*Preformatted) Bytes ¶
func (l *Preformatted) Bytes() []byte
func (*Preformatted) Type ¶
func (l *Preformatted) Type() LineType
Click to show internal directories.
Click to hide internal directories.