1
mirror of https://gitlab.com/commento/commento.git synced 2026-06-14 09:05:26 -04:00
Files
commento/api/markdown_html.go
T

11 lines
226 B
Go

package main
import (
"github.com/russross/blackfriday"
)
func markdownToHtml(markdown string) string {
unsafe := blackfriday.Markdown([]byte(markdown), renderer, extensions)
return string(policy.SanitizeBytes(unsafe))
}