binwiederhier 2 лет назад
Родитель
Сommit
2d1f2f319f
3 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      cmd/publish.go
  2. 1 1
      docs/publish.md
  3. 1 0
      docs/releases.md

+ 1 - 1
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")

+ 1 - 1
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*, ..."
     ```
 

+ 1 - 0
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:**