Fix markdown renderer (#275)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-02-15 17:14:10 +00:00
committed by GitHub
co-authored by CrazyMax
parent c971e06d9f
commit c43e2459d4
+1 -1
View File
@@ -39,7 +39,7 @@ func New(opts Options) (*Client, error) {
// RenderMarkdown returns a notification message as markdown
func (c *Client) RenderMarkdown() (title string, text []byte, err error) {
return c.RenderHTMLTemplate(strings.ReplaceAll(defaultTpl, "\n", " "))
return c.RenderMarkdownTemplate(strings.ReplaceAll(defaultTpl, "\n", " "))
}
// RenderMarkdownTemplate returns a notification message as markdown with a custom template