Aucune description

markdown.go 262B

    package main import ( "github.com/microcosm-cc/bluemonday" "github.com/russross/blackfriday" ) func MarkdownToHtml(markdown []byte) []byte { unsafe := blackfriday.MarkdownCommon(markdown) html := bluemonday.UGCPolicy().SanitizeBytes(unsafe) return html }