diff --git a/api/main.go b/api/main.go index d4177b1..8030752 100644 --- a/api/main.go +++ b/api/main.go @@ -8,7 +8,7 @@ func main() { exitIfError(smtpConfigure()) exitIfError(smtpTemplatesLoad()) exitIfError(oauthConfigure()) - exitIfError(createMarkdownRenderer()) + exitIfError(markdownRendererCreate()) exitIfError(setupSigintCleanup()) exitIfError(serveRoutes()) diff --git a/api/markdown.go b/api/markdown.go index 5c96693..9f3db05 100644 --- a/api/markdown.go +++ b/api/markdown.go @@ -9,7 +9,7 @@ var policy *bluemonday.Policy var renderer blackfriday.Renderer var extensions int -func createMarkdownRenderer() error { +func markdownRendererCreate() error { policy = bluemonday.UGCPolicy() extensions = 0 diff --git a/api/testing.go b/api/testing.go index 13af060..5ad9d2c 100644 --- a/api/testing.go +++ b/api/testing.go @@ -120,7 +120,7 @@ func setupTestEnv() error { return err } - if err := createMarkdownRenderer(); err != nil { + if err := markdownRendererCreate(); err != nil { return err } }