fix: use title as email's subject if given

This commit is contained in:
JustSong
2023-05-09 16:40:05 +08:00
parent 93b19b7fbc
commit fa166df5ac
2 changed files with 14 additions and 9 deletions

View File

@@ -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 {