mdcat

package
v0.0.0-...-39615a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UNORDERED = 1 << iota
	ORDERED
)

Variables

This section is empty.

Functions

func MarkDown

func MarkDown(input string) string

MarkDown prints markdown

Types

type Console

type Console struct {
	// contains filtered or unexported fields
}
func (options *Console) AutoLink(out *bytes.Buffer, link []byte, kind int)

func (*Console) BlockCode

func (options *Console) BlockCode(out *bytes.Buffer, text []byte, lang string)

func (*Console) BlockHtml

func (options *Console) BlockHtml(out *bytes.Buffer, text []byte)

func (*Console) BlockQuote

func (options *Console) BlockQuote(out *bytes.Buffer, text []byte)

func (*Console) CodeSpan

func (options *Console) CodeSpan(out *bytes.Buffer, text []byte)

func (*Console) DocumentFooter

func (options *Console) DocumentFooter(out *bytes.Buffer)

func (*Console) DocumentHeader

func (options *Console) DocumentHeader(out *bytes.Buffer)

func (*Console) DoubleEmphasis

func (options *Console) DoubleEmphasis(out *bytes.Buffer, text []byte)

func (*Console) Emphasis

func (options *Console) Emphasis(out *bytes.Buffer, text []byte)

func (*Console) Entity

func (options *Console) Entity(out *bytes.Buffer, entity []byte)

func (*Console) FootnoteItem

func (options *Console) FootnoteItem(out *bytes.Buffer, name, text []byte, flags int)

func (*Console) FootnoteRef

func (options *Console) FootnoteRef(out *bytes.Buffer, ref []byte, id int)

func (*Console) Footnotes

func (options *Console) Footnotes(out *bytes.Buffer, text func() bool)

func (*Console) GetFlags

func (options *Console) GetFlags() int

func (*Console) HRule

func (options *Console) HRule(out *bytes.Buffer)

func (*Console) Header

func (options *Console) Header(out *bytes.Buffer, text func() bool, level int, id string)

func (*Console) Image

func (options *Console) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte)

func (*Console) LineBreak

func (options *Console) LineBreak(out *bytes.Buffer)
func (options *Console) Link(out *bytes.Buffer, link []byte, title []byte, content []byte)

func (*Console) List

func (options *Console) List(out *bytes.Buffer, text func() bool, flags int)

func (*Console) ListItem

func (options *Console) ListItem(out *bytes.Buffer, text []byte, flags int)

func (*Console) NormalText

func (options *Console) NormalText(out *bytes.Buffer, text []byte)

func (*Console) Paragraph

func (options *Console) Paragraph(out *bytes.Buffer, text func() bool)

func (*Console) RawHtmlTag

func (options *Console) RawHtmlTag(out *bytes.Buffer, tag []byte)

func (*Console) StrikeThrough

func (options *Console) StrikeThrough(out *bytes.Buffer, text []byte)

func (*Console) Table

func (options *Console) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int)

func (*Console) TableCell

func (options *Console) TableCell(out *bytes.Buffer, text []byte, flags int)

func (*Console) TableHeaderCell

func (options *Console) TableHeaderCell(out *bytes.Buffer, text []byte, flags int)

func (*Console) TableRow

func (options *Console) TableRow(out *bytes.Buffer, text []byte)

func (*Console) TitleBlock

func (options *Console) TitleBlock(out *bytes.Buffer, text []byte)

func (*Console) TripleEmphasis

func (options *Console) TripleEmphasis(out *bytes.Buffer, text []byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL