aboutsummaryrefslogtreecommitdiffstats
path: root/modules/markup/orgmode
diff options
context:
space:
mode:
authorharryzcy <harry@harryzheng.com>2023-07-13 22:00:31 -0500
committerGitHub <noreply@github.com>2023-07-14 11:00:31 +0800
commitc5e187c389b35b9e080a3187b93a775a3c81e585 (patch)
tree7c65ee5aaf56b6f53a96742286d98119dba5b13b /modules/markup/orgmode
parentb81c01305714ceca818ccb91d19dada6469e658c (diff)
downloadgitea-c5e187c389b35b9e080a3187b93a775a3c81e585.tar.gz
gitea-c5e187c389b35b9e080a3187b93a775a3c81e585.zip
Upgrade go dependencies (#25819)
Diffstat (limited to 'modules/markup/orgmode')
-rw-r--r--modules/markup/orgmode/orgmode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/orgmode/orgmode.go b/modules/markup/orgmode/orgmode.go
index 5a8485e571..a6dac12039 100644
--- a/modules/markup/orgmode/orgmode.go
+++ b/modules/markup/orgmode/orgmode.go
@@ -51,7 +51,7 @@ func (Renderer) SanitizerRules() []setting.MarkupSanitizerRule {
// Render renders orgmode rawbytes to HTML
func Render(ctx *markup.RenderContext, input io.Reader, output io.Writer) error {
htmlWriter := org.NewHTMLWriter()
- htmlWriter.HighlightCodeBlock = func(source, lang string, inline bool) string {
+ htmlWriter.HighlightCodeBlock = func(source, lang string, inline bool, params map[string]string) string {
defer func() {
if err := recover(); err != nil {
log.Error("Panic in HighlightCodeBlock: %v\n%s", err, log.Stack(2))