aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-05-25 16:54:42 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2021-05-25 16:54:42 +0200
commitd46ea7d7da3f842d265f09730c90cfc3691576ef (patch)
treea37126d86fa62f57063b8c36403541d5ec1a0adf /src/Text/Pandoc/Readers
parent8511f6fdf6c9fbc2cc926538bca4ae9f554b4ed9 (diff)
downloadpandoc-d46ea7d7da3f842d265f09730c90cfc3691576ef.tar.gz
Jira: add support for "smart" links
Support has been added for the new `[alias|https://example.com|smart-card]` syntax.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Jira.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Jira.hs b/src/Text/Pandoc/Readers/Jira.hs
index a3b415f09..cf111f173 100644
--- a/src/Text/Pandoc/Readers/Jira.hs
+++ b/src/Text/Pandoc/Readers/Jira.hs
@@ -172,6 +172,8 @@ jiraLinkToPandoc linkType alias url =
Jira.Email -> link ("mailto:" <> url') "" alias'
Jira.Attachment -> linkWith ("", ["attachment"], []) url' "" alias'
Jira.User -> linkWith ("", ["user-account"], []) url' "" alias'
+ Jira.SmartCard -> linkWith ("", ["smart-card"], []) url' "" alias'
+ Jira.SmartLink -> linkWith ("", ["smart-link"], []) url' "" alias'
-- | Get unicode representation of a Jira icon.
iconUnicode :: Jira.Icon -> Text