Skip to content

Commit

Permalink
Add Web.Slack.Experimental.Blocks.italic. (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktang-hg committed Nov 28, 2022
1 parent c57a2ec commit 232618c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion slack-web.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2
name: slack-web
version: 0.5.0.0
version: 0.5.0.1

build-type: Simple

Expand Down
4 changes: 4 additions & 0 deletions src/Web/Slack/Experimental/Blocks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module Web.Slack.Experimental.Blocks
ticks,
codeBlock,
bold,
italic,
newline,
unorderedList,
link,
Expand Down Expand Up @@ -105,6 +106,9 @@ codeBlock x = "```\n" <> x <> "\n```"
bold :: SlackText -> SlackText
bold x = "*" <> x <> "*"

italic :: SlackText -> SlackText
italic x = "_" <> x <> "_"

newline :: SlackText -> SlackText
newline x = "\n" <> x

Expand Down

0 comments on commit 232618c

Please sign in to comment.