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")