mirror of
https://github.com/danog/blackfriday.git
synced 2024-11-26 20:14:43 +01:00
Get rid of unneeded method in Renderer
This commit is contained in:
parent
24e146a727
commit
98ddf98997
4
html.go
4
html.go
@ -125,10 +125,6 @@ func (w *HTMLWriter) Newline() {
|
||||
w.WriteByte('\n')
|
||||
}
|
||||
|
||||
func (r *HTML) Write(b []byte) (int, error) {
|
||||
return r.w.Write(b)
|
||||
}
|
||||
|
||||
// NewHTMLRenderer creates and configures an HTML object, which
|
||||
// satisfies the Renderer interface.
|
||||
func NewHTMLRenderer(params HTMLRendererParameters) Renderer {
|
||||
|
4
latex.go
4
latex.go
@ -36,10 +36,6 @@ func NewLatexRenderer(flags int) Renderer {
|
||||
}
|
||||
}
|
||||
|
||||
func (r *Latex) Write(b []byte) (int, error) {
|
||||
return r.w.Write(b)
|
||||
}
|
||||
|
||||
// render code chunks using verbatim, or listings if we have a language
|
||||
func (r *Latex) BlockCode(text []byte, lang string) {
|
||||
if lang == "" {
|
||||
|
@ -212,8 +212,6 @@ type Renderer interface {
|
||||
DocumentHeader()
|
||||
DocumentFooter()
|
||||
|
||||
Write(b []byte) (int, error)
|
||||
|
||||
Render(ast *Node) []byte
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user