gobuffalo/velvet

View on GitHub
markdown_helper.go

Summary

Maintainability
A
0 mins
Test Coverage
package velvet

import (
    "html/template"

    "github.com/shurcooL/github_flavored_markdown"
)

// Markdown converts the string into HTML using GitHub flavored markdown.
func markdownHelper(body string) template.HTML {
    b := github_flavored_markdown.Markdown([]byte(body))
    return template.HTML(b)
}