fix: Support markdown formate content

Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
This commit is contained in:
TheYoungManLi 2023-02-22 11:11:17 +08:00
parent f41dbe5ec0
commit 11b476ae5d
2 changed files with 10 additions and 1 deletions

View File

@ -66,6 +66,15 @@
line-height: 1.75;
letter-spacing: -0.04px;
color: #919aa3;
code {
color: #36435c;
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
background-color: #1B1F230A;
border-radius: 3px;
}
}
&>a {

View File

@ -58,7 +58,7 @@
{{ end }}
{{ if isset $index "content" }}
{{ with $index.content }}
<p>{{ . }}</p>
<p>{{ . | markdownify }}</p>
{{ end }}
{{ end }}
{{ end }}