diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-04-13 15:06:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-13 15:06:31 +0800 |
commit | 66f0fd0959b293c01a7685e9d7858db1da4416da (patch) | |
tree | fbe5b537bbe9361ab3e7067c6d583230bf45db77 /modules/markup/external | |
parent | bf3e584de25b43ddc8fd12d1388fbd9b984f883b (diff) | |
download | gitea-66f0fd0959b293c01a7685e9d7858db1da4416da.tar.gz gitea-66f0fd0959b293c01a7685e9d7858db1da4416da.zip |
Add NeedPostProcess for Parser interface to improve performance of csv render (#15153)
Diffstat (limited to 'modules/markup/external')
-rw-r--r-- | modules/markup/external/external.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/markup/external/external.go b/modules/markup/external/external.go index 7acf936171..6e7e59970d 100644 --- a/modules/markup/external/external.go +++ b/modules/markup/external/external.go @@ -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 |