Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Custom ¶
type Custom interface {
Write(w io.Writer, l gemtext.Line, r LineReader) error
}
Custom defines a custom unit
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
func NewFormatter ¶
func NewFormatter(fc FormatterConf) (*Formatter, error)
NewFormatter returns a new gemtext renderer
probably sounds a bit pointless to have a gemtext > gemtext renderer but its not quite as pointless as it sounds when used with custom line types
func (*Formatter) FormatString ¶
FormatString writes a parsed file back into gemtext returning a string See FormatWriter for more documentation
type FormatterConf ¶
type LineReader ¶
type LineReader interface { Current() gemtext.Line Peek(i int) gemtext.Line PeekBack() gemtext.Line PeekAhead() gemtext.Line }
LineReader is a linereader but somewhat more restricted
Click to show internal directories.
Click to hide internal directories.