Documentation ¶
Index ¶
- Constants
- func Convert(gmi string, flavor Flavor) string
- func Cook(r io.Reader, w io.Writer, flavor Flavor)
- func Safe(raw string) string
- type Flavor
- type Hook
- type Html
- func (html *Html) Aspeq(prefix string, useBase bool) LinkHook
- func (html *Html) Close() string
- func (html *Html) GetState() State
- func (html *Html) Header(level int, text string) string
- func (html *Html) Link(url string, text string) string
- func (html *Html) ListItem(text string) string
- func (html *Html) OnClose(hook Hook)
- func (html *Html) OnLink(rule string, hook LinkHook)
- func (html *Html) OnOpen(hook Hook)
- func (html *Html) OnQuote(hook QuoteHook)
- func (html *Html) Open() string
- func (html *Html) Pre(text string) string
- func (html *Html) Quote(text string) string
- func (html *Html) SetState(state State) string
- func (html *Html) Text(text string) string
- func (html *Html) Wrap(tag string)
- type LinkHook
- type Markdown
- func (md *Markdown) Aspeq(prefix string, useBase bool) LinkHook
- func (md *Markdown) Close() string
- func (md *Markdown) GetState() State
- func (md *Markdown) Header(level int, text string) string
- func (md *Markdown) Link(url string, text string) string
- func (md *Markdown) ListItem(text string) string
- func (md *Markdown) OnClose(hook Hook)
- func (md *Markdown) OnLink(rule string, hook LinkHook)
- func (md *Markdown) OnOpen(hook Hook)
- func (md *Markdown) OnQuote(hook QuoteHook)
- func (md *Markdown) Open() string
- func (md *Markdown) Pre(text string) string
- func (md *Markdown) Quote(text string) string
- func (md *Markdown) SetState(state State) string
- func (md *Markdown) Text(text string) string
- func (md *Markdown) Wrap(s string)
- type QuoteHook
- type State
Constants ¶
View Source
const Version = "0.4.2"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Flavor ¶
type Flavor interface { Open() string Close() string ListItem(string) string Header(int, string) string Link(string, string) string Pre(string) string Quote(string) string Text(string) string SetState(State) string GetState() State OnLink(string, LinkHook) OnQuote(QuoteHook) OnOpen(Hook) OnClose(Hook) Aspeq(string, bool) LinkHook Wrap(string) }
type Html ¶
Click to show internal directories.
Click to hide internal directories.