Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion clib/markdown_nocgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 1 addition & 3 deletions notify/notify.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package notify

import (
"fmt"
"os/exec"
"runtime"
)
Expand All @@ -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:
Expand Down
Loading