fix: use title as email's subject if given
This commit is contained in:
@@ -144,6 +144,9 @@ func Max(a int, b int) int {
|
||||
}
|
||||
|
||||
func Markdown2HTML(markdown string) (HTML string, err error) {
|
||||
if markdown == "" {
|
||||
return "", nil
|
||||
}
|
||||
var buf bytes.Buffer
|
||||
err = goldmark.Convert([]byte(markdown), &buf)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user