1
0
Fork 0
mirror of https://github.com/Luzifer/korvike.git synced 2024-11-08 23:40:05 +00:00
korvike/functions/func_markdown.go
Knut Ahlers f0c948084e
Make blackfriday markdown available
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-04-08 22:40:37 +02:00

9 lines
201 B
Go

package functions
import "github.com/russross/blackfriday/v2"
func init() {
registerFunction("markdown", func(name string, v ...string) string {
return string(blackfriday.Run([]byte(name)))
})
}