blog/core/markdown.go

10 lines
251 B
Go
Raw Normal View History

2017-11-20 05:49:19 +00:00
package core
import "github.com/shurcooL/github_flavored_markdown"
// RenderMarkdown renders markdown to HTML.
func (b *Blog) RenderMarkdown(input string) string {
output := github_flavored_markdown.Markdown([]byte(input))
return string(output)
}