]> source.dussan.org Git - gitea.git/commit
Fix several render issues (#14986)
authorzeripath <art27@cantab.net>
Mon, 15 Mar 2021 23:20:05 +0000 (23:20 +0000)
committerGitHub <noreply@github.com>
Mon, 15 Mar 2021 23:20:05 +0000 (00:20 +0100)
commited31ddc29a1cae7af193fb0793d129b07da91ce2
tree2a1ce0fd4085d4ded6c913f0e7763a7239fc8ffd
parent044cd4d016196e8c7091eee90b7e6f230bba142f
Fix several render issues (#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