diff --git a/cmd/publish.go b/cmd/publish.go index 390e5f67..5ffe3adf 100644 --- a/cmd/publish.go +++ b/cmd/publish.go @@ -96,7 +96,7 @@ func execPublish(c *cli.Context) error { icon := c.String("icon") actions := c.String("actions") attach := c.String("attach") - markdown := c.Bool("attach") + markdown := c.Bool("markdown") filename := c.String("filename") file := c.String("file") email := c.String("email") diff --git a/docs/publish.md b/docs/publish.md index 13e1597c..2de0ff73 100644 --- a/docs/publish.md +++ b/docs/publish.md @@ -653,8 +653,8 @@ As of today, **Markdown is only supported in the web app.** Here's an example of === "ntfy CLI" ``` ntfy publish \ - mytopic \ --markdown \ + mytopic \ "Look ma, **bold text**, *italics*, ..." ``` diff --git a/docs/releases.md b/docs/releases.md index 35e049c4..d7edcf4f 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -1255,6 +1255,7 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release **Features:** +* Add support for [Markdown formatting](publish.md#markdown-formatting) in web app ([#310](https://github.com/binwiederhier/ntfy/issues/310), thanks to [@nihalgonsalves](https://github.com/nihalgonsalves)) * Add support for right-to-left languages (RTL) in the web app ([#663](https://github.com/binwiederhier/ntfy/issues/663), thanks to [@nimbleghost](https://github.com/nimbleghost)) **Bug fixes + maintenance:**