From 4ebf9e02eff70b11cee207f631bf0b142d1c41a3 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Sun, 18 Feb 2018 12:04:23 -0800 Subject: [PATCH] Allow center --- handlers.go | 2 +- utils.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index dc40457..5bd2b39 100755 --- a/handlers.go +++ b/handlers.go @@ -295,7 +295,7 @@ func handlePageRequest(c *gin.Context) { // Destroy page if it is opened and primed if p.IsPrimedForSelfDestruct && !p.IsLocked && !p.IsEncrypted { - p.Update("*This page has self-destructed. You cannot return to it.*\n\n" + p.Text.GetCurrent()) + p.Update("
This page has self-destructed. You cannot return to it.
\n\n" + p.Text.GetCurrent()) p.Erase() if p.IsPublished { command = "/read" diff --git a/utils.go b/utils.go index eb483dd..51f87cd 100644 --- a/utils.go +++ b/utils.go @@ -182,6 +182,7 @@ func MarkdownToHtml(s string) string { pClean := bluemonday.UGCPolicy() pClean.AllowElements("img") + pClean.AllowElements("center") pClean.AllowAttrs("alt").OnElements("img") pClean.AllowAttrs("src").OnElements("img") pClean.AllowAttrs("class").OnElements("a")