diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2018-10-05 15:57:03 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2018-10-05 15:57:03 +0300 |
commit | 0ce7183c81715ce212196f64ba916fd5d9a5c0dd (patch) | |
tree | 10482407aa8d914522ff6f1e5b2387ffc3adf2ce | |
parent | ef4bc58cc1b2ce8226cfe3449eb188734dcb5c51 (diff) | |
download | pandoc-0ce7183c81715ce212196f64ba916fd5d9a5c0dd.tar.gz |
Muse reader: get rid of TagSoup import
-rw-r--r-- | src/Text/Pandoc/Readers/Muse.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs index c3b8ea25f..8e1f3a2af 100644 --- a/src/Text/Pandoc/Readers/Muse.hs +++ b/src/Text/Pandoc/Readers/Muse.hs @@ -51,7 +51,6 @@ import qualified Data.Map as M import qualified Data.Set as Set import Data.Maybe (fromMaybe, isNothing, maybeToList) import Data.Text (Text, unpack) -import Text.HTML.TagSoup import Text.Pandoc.Builder (Blocks, Inlines) import qualified Text.Pandoc.Builder as B import Text.Pandoc.Class (PandocMonad (..)) @@ -196,7 +195,7 @@ closeTag :: PandocMonad m => String -> MuseParser m () closeTag tag = try $ string "</" *> string tag *> void (char '>') -- | Convert HTML attributes to Pandoc 'Attr' -htmlAttrToPandoc :: [Attribute String] -> Attr +htmlAttrToPandoc :: [(String, String)] -> Attr htmlAttrToPandoc attrs = (ident, classes, keyvals) where ident = fromMaybe "" $ lookup "id" attrs |