mirror of
https://github.com/status-im/markdown.git
synced 2025-02-23 08:38:23 +00:00
Remove dead code
This commit is contained in:
parent
a55b2615a4
commit
71fe9a191e
4
html.go
4
html.go
@ -238,10 +238,6 @@ func (r *HTML) entityEscapeWithSkip(src []byte, skipRanges [][]int) {
|
||||
r.attrEscape(src[end:])
|
||||
}
|
||||
|
||||
func (r *HTML) GetFlags() HtmlFlags {
|
||||
return r.flags
|
||||
}
|
||||
|
||||
func (r *HTML) TitleBlock(text []byte) {
|
||||
text = bytes.TrimPrefix(text, []byte("% "))
|
||||
text = bytes.Replace(text, []byte("\n% "), []byte("\n"), -1)
|
||||
|
4
latex.go
4
latex.go
@ -40,10 +40,6 @@ func (r *Latex) Write(b []byte) (int, error) {
|
||||
return r.w.Write(b)
|
||||
}
|
||||
|
||||
func (r *Latex) GetFlags() HtmlFlags {
|
||||
return 0
|
||||
}
|
||||
|
||||
// render code chunks using verbatim, or listings if we have a language
|
||||
func (r *Latex) BlockCode(text []byte, lang string) {
|
||||
if lang == "" {
|
||||
|
@ -210,7 +210,6 @@ type Renderer interface {
|
||||
DocumentHeader()
|
||||
DocumentFooter()
|
||||
|
||||
GetFlags() HtmlFlags
|
||||
Write(b []byte) (int, error)
|
||||
|
||||
Render(ast *Node) []byte
|
||||
|
Loading…
x
Reference in New Issue
Block a user