Documentation ¶
Index ¶
- func PlainMarkdown(md string) (string, error)
- func TextRenderer() blackfriday.Renderer
- type Text
- func (options *Text) AutoLink(out *bytes.Buffer, link []byte, kind int)
- func (options *Text) BlockCode(out *bytes.Buffer, text []byte, lang string)
- func (options *Text) BlockCodeNormal(out *bytes.Buffer, text []byte, lang string)
- func (options *Text) BlockHtml(out *bytes.Buffer, text []byte)
- func (options *Text) BlockQuote(out *bytes.Buffer, text []byte)
- func (options *Text) CodeSpan(out *bytes.Buffer, text []byte)
- func (options *Text) DocumentFooter(out *bytes.Buffer)
- func (options *Text) DocumentHeader(out *bytes.Buffer)
- func (options *Text) DoubleEmphasis(out *bytes.Buffer, text []byte)
- func (options *Text) Emphasis(out *bytes.Buffer, text []byte)
- func (options *Text) Entity(out *bytes.Buffer, entity []byte)
- func (options *Text) FootnoteItem(out *bytes.Buffer, name, text []byte, flags int)
- func (options *Text) FootnoteRef(out *bytes.Buffer, ref []byte, id int)
- func (options *Text) Footnotes(out *bytes.Buffer, text func() bool)
- func (options *Text) GetFlags() int
- func (options *Text) HRule(out *bytes.Buffer)
- func (options *Text) Header(out *bytes.Buffer, text func() bool, level int, id string)
- func (options *Text) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte)
- func (options *Text) LineBreak(out *bytes.Buffer)
- func (options *Text) Link(out *bytes.Buffer, link []byte, title []byte, content []byte)
- func (options *Text) List(out *bytes.Buffer, text func() bool, flags int)
- func (options *Text) ListItem(out *bytes.Buffer, text []byte, flags int)
- func (options *Text) NormalText(out *bytes.Buffer, text []byte)
- func (options *Text) Paragraph(out *bytes.Buffer, text func() bool)
- func (options *Text) RawHtmlTag(out *bytes.Buffer, text []byte)
- func (options *Text) Smartypants(out *bytes.Buffer, text []byte)
- func (options *Text) StrikeThrough(out *bytes.Buffer, text []byte)
- func (options *Text) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int)
- func (options *Text) TableCell(out *bytes.Buffer, text []byte, align int)
- func (options *Text) TableHeaderCell(out *bytes.Buffer, text []byte, align int)
- func (options *Text) TableRow(out *bytes.Buffer, text []byte)
- func (options *Text) TitleBlock(out *bytes.Buffer, text []byte)
- func (options *Text) TocFinalize()
- func (options *Text) TocHeader(text []byte, level int)
- func (options *Text) TripleEmphasis(out *bytes.Buffer, text []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlainMarkdown ¶
Clean runs a VERY naive cleanup of markdown text to make it more palatable as plain text.
func TextRenderer ¶
func TextRenderer() blackfriday.Renderer
Types ¶
type Text ¶
type Text struct{}
func (*Text) BlockCodeNormal ¶
func (*Text) DocumentFooter ¶
func (*Text) DocumentHeader ¶
func (*Text) FootnoteItem ¶
func (*Text) TableHeaderCell ¶
func (*Text) TocFinalize ¶
func (options *Text) TocFinalize()
Click to show internal directories.
Click to hide internal directories.