1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

No printing

This commit is contained in:
Zack Scholl 2016-02-10 15:30:01 -05:00
parent 01b8faa71b
commit 20d70cccc3

View File

@ -1,7 +1,6 @@
package main
import (
"fmt"
"html/template"
"io/ioutil"
"net/http"
@ -93,9 +92,7 @@ func serveStaticFile(c *gin.Context, option string) {
}
func renderMarkdown(c *gin.Context, currentText string, title string, versions []versionsInfo) {
fmt.Println(currentText)
unsafe := blackfriday.MarkdownCommon([]byte(currentText))
fmt.Println(string(unsafe))
pClean := bluemonday.UGCPolicy()
pClean.AllowElements("img")
pClean.AllowAttrs("alt").OnElements("img")