diff --git a/appview/pages/markup/markdown.go b/appview/pages/markup/markdown.go index 11861085..df4afa5e 100644 --- a/appview/pages/markup/markdown.go +++ b/appview/pages/markup/markdown.go @@ -154,6 +154,9 @@ func (rctx *RenderContext) Sanitize(html string) string { policy.AllowElements("source") policy.AllowAttrs("src", "type").OnElements("source") + // centering content + policy.AllowElements("center") + policy.AllowAttrs("align", "style", "width", "height").Globally() policy.AllowStyles( "margin",