Muse reader: <literal> has "style" attribute, not "format"
This commit is contained in:
parent
1b970cca13
commit
91d6733426
1 changed files with 2 additions and 1 deletions
|
@ -243,7 +243,8 @@ exampleTag = do
|
|||
literal :: PandocMonad m => MuseParser m (F Blocks)
|
||||
literal = (return . rawBlock) <$> htmlElement "literal"
|
||||
where
|
||||
format (_, _, kvs) = fromMaybe "html" $ lookup "format" kvs
|
||||
-- FIXME: Emacs Muse inserts <literal> without style into all output formats, but we assume HTML
|
||||
format (_, _, kvs) = fromMaybe "html" $ lookup "style" kvs
|
||||
rawBlock (attrs, content) = B.rawBlock (format attrs) content
|
||||
|
||||
blockTag :: PandocMonad m
|
||||
|
|
Loading…
Add table
Reference in a new issue