diff options
| author | John MacFarlane <[email protected]> | 2022-10-29 13:15:04 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-10-29 13:15:04 -0700 |
| commit | bfdf1703306392c3c5a00f78b4dac8007866c822 (patch) | |
| tree | bcf1aceaba0d685920c6329cdb219d0bea097adb | |
| parent | 139f9c064d056989f3a7071341c7b15bfc1850a7 (diff) | |
Use T.P.XML lookupEntity in Jira reader.
| -rw-r--r-- | src/Text/Pandoc/Readers/Jira.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Jira.hs b/src/Text/Pandoc/Readers/Jira.hs index 74918130d..aa18a80d2 100644 --- a/src/Text/Pandoc/Readers/Jira.hs +++ b/src/Text/Pandoc/Readers/Jira.hs @@ -13,7 +13,7 @@ module Text.Pandoc.Readers.Jira ( readJira ) where import Control.Monad.Except (throwError) import Data.Text (Text, append, pack, singleton, unpack) -import Text.HTML.TagSoup.Entity (lookupEntity) +import Text.Pandoc.XML (lookupEntity) import Text.Jira.Parser (parse) import Text.Pandoc.Class.PandocMonad (PandocMonad (..)) import Text.Pandoc.Builder hiding (cell) @@ -137,9 +137,9 @@ jiraToPandocInlines = \case Jira.Styled style inlns -> fromStyle style $ fromInlines inlns where fromInlines = foldMap jiraToPandocInlines - fromEntity e = case lookupEntity (unpack e ++ ";") of + fromEntity e = case lookupEntity (e <> ";") of Nothing -> "&" `append` e `append` ";" - Just cs -> pack cs + Just t ->t fromStyle = \case Jira.Emphasis -> emph |
