aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-09-19 14:06:14 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-09-19 14:06:14 +0300
commit6be2e4339753a3dc6e00a4f07b9315e131fad5be (patch)
tree602601daf99cfc387e514655df529f1bac9528aa /src/Text
parent94b9561e056f44eea891f394bde6547bf05dcb1b (diff)
downloadpandoc-6be2e4339753a3dc6e00a4f07b9315e131fad5be.tar.gz
Muse reader: use openTag and closeTag everywhere
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Muse.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs
index 4c6d78d1b..7f0bd374f 100644
--- a/src/Text/Pandoc/Readers/Muse.hs
+++ b/src/Text/Pandoc/Readers/Muse.hs
@@ -873,8 +873,8 @@ inlineTag :: PandocMonad m
=> String -- ^ Tag name
-> MuseParser m (F Inlines)
inlineTag tag = try $ do
- htmlTag (~== TagOpen tag [])
- mconcat <$> manyTill inline (void $ htmlTag (~== TagClose tag))
+ openTag tag
+ mconcat <$> manyTill inline (closeTag tag)
-- | Parse strong inline markup, indicated by @**@.
strong :: PandocMonad m => MuseParser m (F Inlines)
@@ -918,8 +918,8 @@ verbatimTag = return . B.text . snd <$> htmlElement "verbatim"
-- | Parse @\<class>@ tag.
classTag :: PandocMonad m => MuseParser m (F Inlines)
classTag = do
- (TagOpen _ attrs, _) <- htmlTag (~== TagOpen "class" [])
- res <- manyTill inline (void $ htmlTag (~== TagClose "class"))
+ attrs <- openTag "class"
+ res <- manyTill inline $ closeTag "class"
let classes = maybe [] words $ lookup "name" attrs
return $ B.spanWith ("", classes, []) <$> mconcat res