]> source.dussan.org Git - gitea.git/commit
Prevent panic in Org mode HighlightCodeBlock (#17140)
authorzeripath <art27@cantab.net>
Fri, 24 Sep 2021 13:29:32 +0000 (14:29 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Sep 2021 13:29:32 +0000 (14:29 +0100)
commit623d2dd411b6a84a01bff3ca8046f1bd01773ffb
treeb0a006bc910255246756c0105e6d6c3d4c149f04
parent5842a55b3103d3f09751eb7b3b049415197debad
Prevent panic in Org mode HighlightCodeBlock (#17140)

When rendering source in org mode there is a mistake in the highlight code that
causes a panic.

This PR fixes this.

Fix #17139

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/highlight/highlight.go
modules/markup/orgmode/orgmode.go
modules/markup/orgmode/orgmode_test.go