1
0
Fork 0
forked from forgejo/forgejo

Add NeedPostProcess for Parser interface to improve performance of csv render (#15153)

This commit is contained in:
Lunny Xiao 2021-04-13 15:06:31 +08:00 committed by GitHub
parent bf3e584de2
commit 66f0fd0959
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 38 additions and 14 deletions

View file

@ -38,6 +38,11 @@ func (p *Parser) Name() string {
return p.MarkupName
}
// NeedPostProcess implements markup.Parser
func (p *Parser) NeedPostProcess() bool {
return p.MarkupParser.NeedPostProcess
}
// Extensions returns the supported extensions of the tool
func (p *Parser) Extensions() []string {
return p.FileExtensions