]> source.dussan.org Git - gitea.git/commit
Fix several render issues (#14986) (#15013)
authorzeripath <art27@cantab.net>
Wed, 17 Mar 2021 08:58:58 +0000 (08:58 +0000)
committerGitHub <noreply@github.com>
Wed, 17 Mar 2021 08:58:58 +0000 (10:58 +0200)
commit8c461eb261c060811859600c37ad980a7189bd2d
tree9d338761a972c70010c48dd0f8c54f21a62b1357
parentfff66eb016a61e0f0403d48bb4cec4673a477c4f
Fix several render issues (#14986) (#15013)

Backport #14986

* Fix an issue with panics related to attributes
* Wrap goldmark render in a recovery function
* Reduce memory use in render emoji
* Use a pipe for rendering goldmark - still needs more work and a limiter

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
modules/emoji/emoji.go
modules/emoji/emoji_test.go
modules/markup/html.go
modules/markup/markdown/goldmark.go
modules/markup/markdown/markdown.go
modules/markup/markdown/markdown_test.go