16 lines
181 B
Go
16 lines
181 B
Go
package render
|
|
|
|
import (
|
|
"github.com/gomarkdown/markdown"
|
|
)
|
|
|
|
func Markdown(input string) string {
|
|
out := markdown.ToHTML(
|
|
[]byte(input),
|
|
nil,
|
|
nil,
|
|
)
|
|
|
|
return string(out)
|
|
}
|