Documentation ¶
Index ¶
- func EscapeForLiteral(in string) string
- type Markdown
- func (m *Markdown) Bytes() []byte
- func (m *Markdown) EndTableRow()
- func (m *Markdown) Exact(text string)
- func (m *Markdown) ExactBytes() []byte
- func (m *Markdown) ExactText(text string)
- func (m *Markdown) ExactTextf(format string, args ...any)
- func (m *Markdown) NewOrderedListItem()
- func (m *Markdown) NextTableColumn()
- func (m *Markdown) OrderedListEnd()
- func (m *Markdown) OrderedListStart()
- func (m *Markdown) Text(text string)
- func (m *Markdown) Textf(format string, args ...any)
- func (m *Markdown) Title(level int, text string)
- func (m *Markdown) UnlistedTitle(level int, text string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeForLiteral ¶
EscapeForLiteral escapes common characters so they render properly
Types ¶
type Markdown ¶
type Markdown struct {
// contains filtered or unexported fields
}
func NewMarkdown ¶
func (*Markdown) EndTableRow ¶
func (m *Markdown) EndTableRow()
func (*Markdown) ExactBytes ¶
ExactBytes returns markdown with table of contents or title. Useful for embedding.
func (*Markdown) ExactTextf ¶
func (*Markdown) NewOrderedListItem ¶
func (m *Markdown) NewOrderedListItem()
func (*Markdown) NextTableColumn ¶
func (m *Markdown) NextTableColumn()
func (*Markdown) OrderedListEnd ¶
func (m *Markdown) OrderedListEnd()
func (*Markdown) OrderedListStart ¶
func (m *Markdown) OrderedListStart()
func (*Markdown) UnlistedTitle ¶
Click to show internal directories.
Click to hide internal directories.