From 47716518aead6fc40826c991785fde8549e0f841 Mon Sep 17 00:00:00 2001 From: hanna Date: Wed, 21 May 2025 11:38:40 -0400 Subject: [PATCH] appview: pages/markup: allow center tag --- appview/pages/markup/markdown.go | 3 +++ 1 file changed, 3 insertions(+) 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", -- 2.51.2