git.iko.soy/typeable/pandoc
on master help sign in
Muse reader: <literal> has "style" attribute, not "format"
commit91d67334263058fa884793cb71d5ba9e7fcc4eb3 authorAlexander Krotov <ilabdsf@gmail.com> dateTue 21 Nov 2017, 18:29 (9 years ago) parent1b970cc
1 file changed+2−1
src/Text/Pandoc/Readers/Muse.hs+2−1
src/Text/Pandoc/Readers/Muse.hs+2−1
@@ -243,7 +243,8 @@ exampleTag = do
243243literal :: PandocMonad m => MuseParser m (F Blocks)
244244literal = (return . rawBlock) <$> htmlElement "literal"
245245 where
246− format (_, _, kvs) = fromMaybe "html" $ lookup "format" kvs
246+ -- FIXME: Emacs Muse inserts <literal> without style into all output formats, but we assume HTML
247+ format (_, _, kvs) = fromMaybe "html" $ lookup "style" kvs
247248 rawBlock (attrs, content) = B.rawBlock (format attrs) content
248249
249250blockTag :: PandocMonad m