Documentation ¶
Index ¶
- func NewAnsiRenderer(styleName string) (*ansi.ANSIRenderer, error)
- func NewMarkdown(r interface{}) goldmark.Markdown
- type Cursor
- type LinenumRenderer
- type LinenumWriter
- func (lw *LinenumWriter) AddIndicatorToNextLine()
- func (lw *LinenumWriter) Flush() (err error)
- func (lw *LinenumWriter) MarkCursorLocation(content string) string
- func (lw *LinenumWriter) SetIndicatorWidth(width int)
- func (lw *LinenumWriter) String() string
- func (lw *LinenumWriter) Write(data []byte) (n int, err error)
- type TermRenderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnsiRenderer ¶
func NewAnsiRenderer(styleName string) (*ansi.ANSIRenderer, error)
func NewMarkdown ¶
Types ¶
type LinenumRenderer ¶
type LinenumRenderer struct {
TermRenderer
}
func NewLinenumRenderer ¶
func NewLinenumRenderer(styleName string) (*LinenumRenderer, error)
type LinenumWriter ¶
type LinenumWriter struct {
// contains filtered or unexported fields
}
func NewLinenumWriter ¶
func NewLinenumWriter(start, prefixWidth int, indicator string, cursor *Cursor) *LinenumWriter
func (*LinenumWriter) AddIndicatorToNextLine ¶
func (lw *LinenumWriter) AddIndicatorToNextLine()
func (*LinenumWriter) Flush ¶
func (lw *LinenumWriter) Flush() (err error)
func (*LinenumWriter) MarkCursorLocation ¶
func (lw *LinenumWriter) MarkCursorLocation(content string) string
func (*LinenumWriter) SetIndicatorWidth ¶
func (lw *LinenumWriter) SetIndicatorWidth(width int)
func (*LinenumWriter) String ¶
func (lw *LinenumWriter) String() string
type TermRenderer ¶
type TermRenderer struct {
// contains filtered or unexported fields
}
func NewTermRenderer ¶
func NewTermRenderer(styleName string) (*TermRenderer, error)
func (*TermRenderer) RegisterFuncs ¶
func (tr *TermRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
Click to show internal directories.
Click to hide internal directories.