mirror of
https://github.com/songquanpeng/message-pusher.git
synced 2025-10-15 12:30:42 +08:00
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