1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-15 05:58:27 +00:00

Fix nil context in RenderMarkdownToHtml (#23092) (#23108)

Backport #23092

Fix #23082.

This bug is caused by a nil context in
https://github.com/go-gitea/gitea/issues/23082#issuecomment-1441276546 .

Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
Yarden Shoham
2023-02-24 15:17:03 +02:00
committed by GitHub
parent 5ddf67a9c2
commit e02e752f68
13 changed files with 24 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
{{if .Attributes.label}}
<h3>{{.Attributes.label}}{{if .Validations.required}}<label class="required"></label>{{end}}</h3>
{{if .item.Attributes.label}}
<h3>{{.item.Attributes.label}}{{if .item.Validations.required}}<label class="required"></label>{{end}}</h3>
{{end}}
{{if .Attributes.description}}
<span class="help">{{RenderMarkdownToHtml .Attributes.description}}</span>
{{if .item.Attributes.description}}
<span class="help">{{RenderMarkdownToHtml .Context .item.Attributes.description}}</span>
{{end}}