Esempio n. 1
0
func (dr *debugRenderer) List(out *bytes.Buffer, text func() bool, flags int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(flags))
	debugText := func() bool {
		b := text()
		fmt.Println("text", gist6418290.GetParentFuncArgsAsString(), "->", b)
		return b
	}
	dr.real.List(out, debugText, flags)
}
Esempio n. 2
0
func (dr *debugRenderer) Paragraph(out *bytes.Buffer, text func() bool) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
	debugText := func() bool {
		b := text()
		fmt.Println("text", gist6418290.GetParentFuncArgsAsString(), "->", b)
		return b
	}
	dr.real.Paragraph(out, debugText)
}
Esempio n. 3
0
func (_ *debugRenderer) AutoLink(out *bytes.Buffer, link []byte, kind int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(link), kind))
}
Esempio n. 4
0
func (_ *debugRenderer) Footnotes(out *bytes.Buffer, text func() bool) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
}
Esempio n. 5
0
func (_ *debugRenderer) FootnoteItem(out *bytes.Buffer, name, text []byte, flags int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(name), string(text), flags))
}
Esempio n. 6
0
func (_ *debugRenderer) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(header), string(body), columnData))
}
Esempio n. 7
0
func (_ *debugRenderer) TableCell(out *bytes.Buffer, text []byte, align int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text), align))
}
Esempio n. 8
0
func (_ *debugRenderer) FootnoteRef(out *bytes.Buffer, ref []byte, id int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(ref), id))
}
Esempio n. 9
0
func (a debugAnnotator) Annotate(start int, kind syntaxhighlight.Kind, tokText string) (*annotate.Annotation, error) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(start, kind, tokText))

	return a.Annotator.Annotate(start, kind, tokText)
}
Esempio n. 10
0
func (_ *debugRenderer) HRule(out *bytes.Buffer) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
}
Esempio n. 11
0
func (_ *debugRenderer) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(link), string(title), string(content)))
}
Esempio n. 12
0
func (dr *debugRenderer) BlockQuote(out *bytes.Buffer, text []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text)))
	dr.real.BlockQuote(out, text)
}
Esempio n. 13
0
func (_ *debugRenderer) Header(out *bytes.Buffer, text func() bool, level int, id string) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(level, id))
}
Esempio n. 14
0
func (dr *debugRenderer) BlockCode(out *bytes.Buffer, text []byte, lang string) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text), lang))
	dr.real.BlockCode(out, text, lang)
}
Esempio n. 15
0
func (dr *debugRenderer) GetFlags() int {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
	return dr.real.GetFlags()
}
Esempio n. 16
0
func (dr *debugRenderer) Entity(out *bytes.Buffer, entity []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(entity)))
	dr.real.Entity(out, entity)
}
Esempio n. 17
0
func (_ *debugRenderer) Emphasis(out *bytes.Buffer, text []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text)))
}
Esempio n. 18
0
func (dfs *debugFileSystem) ReadDir(path string) ([]os.FileInfo, error) {
	log.Println(gist6418290.GetParentFuncArgsAsString(path))
	return dfs.real.ReadDir(path)
}
Esempio n. 19
0
func (dr *debugRenderer) LineBreak(out *bytes.Buffer) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
	dr.real.LineBreak(out)
}
Esempio n. 20
0
func (_ *debugRenderer) RawHtmlTag(out *bytes.Buffer, tag []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(tag)))
}
Esempio n. 21
0
func (dfs *debugFileSystem) Open(name string) (vfs.ReadSeekCloser, error) {
	log.Println(gist6418290.GetParentFuncArgsAsString(name))
	return dfs.real.Open(name)
}
Esempio n. 22
0
func (dr *debugRenderer) ListItem(out *bytes.Buffer, text []byte, flags int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text), flags))
	dr.real.ListItem(out, text, flags)
}
Esempio n. 23
0
func (dfs *debugFileSystem) String() string {
	log.Println(gist6418290.GetParentFuncArgsAsString())
	return dfs.real.String()
}
Esempio n. 24
0
func (p debugPrinter) Print(w io.Writer, kind syntaxhighlight.Kind, tokText string) error {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(kind, tokText))

	return p.Printer.Print(w, kind, tokText)
}