1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-14 06:10:26 +00:00
mycorrhiza/plugin/parser/creole.go

12 lines
212 B
Go
Raw Normal View History

package parser
import (
"github.com/bouncepaw/mycorrhiza/util"
"github.com/m4tty/cajun"
)
func CreoleToHtml(creole []byte) string {
out, _ := cajun.Transform(string(util.NormalizeEOL(creole)))
return out
}