Muse reader: parse inline <literal> without parseFromString
This commit is contained in:
parent
60b2863e90
commit
ff31602267
1 changed files with 1 additions and 2 deletions
|
@ -704,8 +704,7 @@ codeTag = do
|
|||
inlineLiteralTag :: PandocMonad m => MuseParser m (F Inlines)
|
||||
inlineLiteralTag = do
|
||||
guardDisabled Ext_amuse -- Text::Amuse does not support <literal>
|
||||
(attrs, content) <- parseHtmlContentWithAttrs "literal" anyChar
|
||||
return $ return $ rawInline (attrs, content)
|
||||
(return . rawInline) <$> htmlElement "literal"
|
||||
where
|
||||
-- FIXME: Emacs Muse inserts <literal> without style into all output formats, but we assume HTML
|
||||
format (_, _, kvs) = fromMaybe "html" $ lookup "style" kvs
|
||||
|
|
Loading…
Reference in a new issue