From 2f09e5775f1e9a7388cde03c70edd1957f619f1b Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 21 Mar 2021 18:03:52 +0100 Subject: [PATCH] Fix markdown rendering in milestone content (#15056) (#15092) - 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 28b11ad6d0..e89131f151 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 bb42a9c73d..94c0600efc 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 09b416c4a1..5e6081a636 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -1320,6 +1320,7 @@ padding-top: 5px; padding-right: 10px; color: #000000; + font-size: 1.5rem; &:hover { color: #4078c0;