30 lines
553 B
Go
30 lines
553 B
Go
package util
|
|
|
|
import (
|
|
"bytes"
|
|
|
|
"github.com/russross/blackfriday"
|
|
)
|
|
|
|
/*
|
|
DocumentlessRenderer wraps an actual renderer and suppresses full-document
|
|
output.
|
|
*/
|
|
type DocumentlessRenderer struct {
|
|
blackfriday.Renderer
|
|
}
|
|
|
|
/*
|
|
DocumentHeader does nothing as it is a bogus implementation to avoid full-
|
|
document output.
|
|
*/
|
|
func (r DocumentlessRenderer) DocumentHeader(out *bytes.Buffer) {
|
|
}
|
|
|
|
/*
|
|
DocumentFooter does nothing as it is a bogus implementation to avoid full-
|
|
document output.
|
|
*/
|
|
func (r DocumentlessRenderer) DocumentFooter(out *bytes.Buffer) {
|
|
}
|