aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/web/user/profile.go6
-rw-r--r--web_src/css/user.css2
2 files changed, 6 insertions, 2 deletions
diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go
index 07a2261c96..15a9197b98 100644
--- a/routers/web/user/profile.go
+++ b/routers/web/user/profile.go
@@ -232,7 +232,11 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileGi
if bytes, err := profileReadme.GetBlobContent(setting.UI.MaxDisplayFileSize); err != nil {
log.Error("failed to GetBlobContent: %v", err)
} else {
- if profileContent, err := markdown.RenderString(&markup.RenderContext{Ctx: ctx, GitRepo: profileGitRepo}, bytes); err != nil {
+ if profileContent, err := markdown.RenderString(&markup.RenderContext{
+ Ctx: ctx,
+ GitRepo: profileGitRepo,
+ Metas: map[string]string{"mode": "document"},
+ }, bytes); err != nil {
log.Error("failed to RenderString: %v", err)
} else {
ctx.Data["ProfileReadme"] = profileContent
diff --git a/web_src/css/user.css b/web_src/css/user.css
index 54a966e7cb..9fcdb3814a 100644
--- a/web_src/css/user.css
+++ b/web_src/css/user.css
@@ -122,7 +122,7 @@
}
#readme_profile {
- padding: 10px;
+ padding: 1em 2em;
border-radius: 0.28571429rem;
background: var(--color-card);
border: 1px solid var(--color-secondary);