mirror of
https://github.com/wahyd4/diun.git
synced 2026-08-08 21:06:05 +10:00
Fix markdown renderer (#275)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user