From d05539eb3e49542ba99af8f4add677f410246aa7 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 20 Mar 2021 10:36:52 +0100 Subject: [PATCH] Fix markdown rendering in milestone content (#15056) - Add missing markdown class for rendered markdown. - Increase font size of milestone name in list. Fixes: https://github.com/go-gitea/gitea/issues/15046 --- templates/repo/issue/milestone_issues.tmpl | 4 ++-- templates/repo/issue/milestones.tmpl | 4 ++-- web_src/less/_repository.less | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index 4f4a91b211..f977074fea 100644 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -4,8 +4,8 @@
-

{{.Milestone.Name}}

-
+

{{.Milestone.Name}}

+
{{.Milestone.RenderedContent|Str2html}}
diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index 4d16b0d014..89ae813d45 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -43,7 +43,7 @@
{{range .Milestones}}
  • - {{svg "octicon-milestone"}} {{.Name}} + {{svg "octicon-milestone" 16 "mr-2"}} {{.Name}}
    @@ -80,7 +80,7 @@
    {{end}} {{if .Content}} -
    +
    {{.RenderedContent|Str2html}}
    {{end}} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index cf510f6f0f..9f40c0c618 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -1167,6 +1167,7 @@ > a { padding-top: 5px; padding-right: 10px; + font-size: 1.5rem; color: var(--color-text); &:hover {