11 lines
226 B
Go
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))
|
|
}
|