init
This commit is contained in:
commit
fa6a4c650f
93 files changed
+6555
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package render
|
||||
|
||||
import "html/template"
|
||||
|
||||
func SafeHTML(
|
||||
input string,
|
||||
) template.HTML {
|
||||
|
||||
return template.HTML(input)
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package render
|
||||
|
||||
import (
|
||||
"github.com/gomarkdown/markdown"
|
||||
)
|
||||
|
||||
func Markdown(input string) string {
|
||||
out := markdown.ToHTML(
|
||||
[]byte(input),
|
||||
nil,
|
||||
nil,
|
||||
)
|
||||
|
||||
return string(out)
|
||||
}
|
||||
Reference in new issue
Block a user