Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- messageToHtml :: HtmlRenderers -> (UserId -> Text) -> SlackMessageText -> Text
- data HtmlRenderers = HtmlRenderers {
- emoticonRenderer :: Text -> Text
- defaultHtmlRenderers :: HtmlRenderers
Documentation
:: HtmlRenderers | Renderers allow you to customize the message rendering.
Give |
-> (UserId -> Text) | A function giving a user name for a user id. You can use |
-> SlackMessageText | A slack message to convert to HTML |
-> Text | The HTML-formatted slack message |
Convert the slack format for messages (markdown like, see https://api.slack.com/docs/message-formatting ) to HTML.
data HtmlRenderers Source #