Example #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)
}
Example #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)
}
Example #3
0
func (_ *debugRenderer) AutoLink(out *bytes.Buffer, link []byte, kind int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(link), kind))
}
Example #4
0
func (_ *debugRenderer) Footnotes(out *bytes.Buffer, text func() bool) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
}
Example #5
0
func (_ *debugRenderer) FootnoteItem(out *bytes.Buffer, name, text []byte, flags int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(name), string(text), flags))
}
Example #6
0
func (_ *debugRenderer) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(header), string(body), columnData))
}
Example #7
0
func (_ *debugRenderer) TableCell(out *bytes.Buffer, text []byte, align int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text), align))
}
Example #8
0
func (_ *debugRenderer) FootnoteRef(out *bytes.Buffer, ref []byte, id int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(ref), id))
}
Example #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)
}
Example #10
0
func (_ *debugRenderer) HRule(out *bytes.Buffer) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
}
Example #11
0
func (_ *debugRenderer) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(link), string(title), string(content)))
}
Example #12
0
func (dr *debugRenderer) BlockQuote(out *bytes.Buffer, text []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text)))
	dr.real.BlockQuote(out, text)
}
Example #13
0
func (_ *debugRenderer) Header(out *bytes.Buffer, text func() bool, level int, id string) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(level, id))
}
Example #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)
}
Example #15
0
func (dr *debugRenderer) GetFlags() int {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
	return dr.real.GetFlags()
}
Example #16
0
func (dr *debugRenderer) Entity(out *bytes.Buffer, entity []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(entity)))
	dr.real.Entity(out, entity)
}
Example #17
0
func (_ *debugRenderer) Emphasis(out *bytes.Buffer, text []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text)))
}
Example #18
0
func (dfs *debugFileSystem) ReadDir(path string) ([]os.FileInfo, error) {
	log.Println(gist6418290.GetParentFuncArgsAsString(path))
	return dfs.real.ReadDir(path)
}
Example #19
0
func (dr *debugRenderer) LineBreak(out *bytes.Buffer) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
	dr.real.LineBreak(out)
}
Example #20
0
func (_ *debugRenderer) RawHtmlTag(out *bytes.Buffer, tag []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(tag)))
}
Example #21
0
func (dfs *debugFileSystem) Open(name string) (vfs.ReadSeekCloser, error) {
	log.Println(gist6418290.GetParentFuncArgsAsString(name))
	return dfs.real.Open(name)
}
Example #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)
}
Example #23
0
func (dfs *debugFileSystem) String() string {
	log.Println(gist6418290.GetParentFuncArgsAsString())
	return dfs.real.String()
}
Example #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)
}