hlint Muse reader and writer
This commit is contained in:
parent
a01573692a
commit
991b57733c
2 changed files with 3 additions and 3 deletions
|
@ -401,7 +401,7 @@ exampleTag = try $ do
|
|||
return $ return $ B.codeBlockWith attr $ rchop $ intercalate "\n" $ dropSpacePrefix $ splitOn "\n" $ lchop contents
|
||||
|
||||
literalTag :: PandocMonad m => MuseParser m (F Blocks)
|
||||
literalTag = do
|
||||
literalTag =
|
||||
(return . rawBlock) <$> htmlBlock "literal"
|
||||
where
|
||||
-- FIXME: Emacs Muse inserts <literal> without style into all output formats, but we assume HTML
|
||||
|
@ -878,7 +878,7 @@ codeTag = do
|
|||
return $ return $ B.codeWith attrs content
|
||||
|
||||
inlineLiteralTag :: PandocMonad m => MuseParser m (F Inlines)
|
||||
inlineLiteralTag = do
|
||||
inlineLiteralTag =
|
||||
(return . rawInline) <$> htmlElement "literal"
|
||||
where
|
||||
-- FIXME: Emacs Muse inserts <literal> without style into all output formats, but we assume HTML
|
||||
|
|
|
@ -157,7 +157,7 @@ blockToMuse (Para inlines) = do
|
|||
return $ contents <> blankline
|
||||
blockToMuse (LineBlock lns) = do
|
||||
lns' <- mapM inlineListToMuse lns
|
||||
return $ nowrap $ vcat (map ((text "> ") <>) lns') <> blankline
|
||||
return $ nowrap $ vcat (map (text "> " <>) lns') <> blankline
|
||||
blockToMuse (CodeBlock (_,_,_) str) =
|
||||
return $ "<example>" $$ text str $$ "</example>" $$ blankline
|
||||
blockToMuse (RawBlock (Format format) str) =
|
||||
|
|
Loading…
Add table
Reference in a new issue