diff --git a/clib/markdown_nocgo.go b/clib/markdown_nocgo.go index b877d4e1..d89646d3 100644 --- a/clib/markdown_nocgo.go +++ b/clib/markdown_nocgo.go @@ -15,7 +15,6 @@ func MarkdownToHTML(md []byte) []byte { var buf bytes.Buffer p := goldmark.New( goldmark.WithRendererOptions( - html.WithUnsafe(), ), ) if err := p.Convert(md, &buf); err != nil { diff --git a/notify/notify.go b/notify/notify.go index a26787e7..cf6b6171 100644 --- a/notify/notify.go +++ b/notify/notify.go @@ -1,7 +1,6 @@ package notify import ( - "fmt" "os/exec" "runtime" ) @@ -11,8 +10,7 @@ import ( func Send(title, body string) error { switch runtime.GOOS { case "darwin": - script := fmt.Sprintf(`display notification %q with title %q sound name "default"`, body, title) - return exec.Command("osascript", "-e", script).Run() //nolint:noctx + return exec.Command("osascript", "-e", "display notification", "-e", body, "-e", "with title", "-e", title, "-e", "sound name \"default\"").Run() //nolint:noctx case "linux": return exec.Command("notify-send", title, body).Run() //nolint:noctx default: