markdown.go: document Formatter
This commit is contained in:
parent
38ff54e038
commit
ab2227c41c
@ -62,6 +62,10 @@ func NewParser(x *Extensions) (p *Parser) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A Formatter is called repeatedly, one Markdown block at a time,
|
||||||
|
// while the document is parsed. At the end of a document the Finish
|
||||||
|
// method is called, which may, for example, print footnotes.
|
||||||
|
// A Formatter can be reused.
|
||||||
type Formatter interface {
|
type Formatter interface {
|
||||||
FormatBlock(*element)
|
FormatBlock(*element)
|
||||||
Finish()
|
Finish()
|
||||||
|
Loading…
Reference in New Issue
Block a user