Muse writer: Do not reflow directives (#3614)

Directives at the beginning of documents cannot
span multiple lines so they must not be reflown.
This commit is contained in:
Alexander Krotov 2017-04-28 11:03:39 +03:00 committed by John MacFarlane
parent 24ef672132
commit e97e9cd6a3

View file

@ -85,8 +85,8 @@ pandocToMuse (Pandoc meta blocks) = do
then Just $ writerColumns opts
else Nothing
metadata <- metaToJSON opts
(fmap (render colwidth) . blockListToMuse)
(fmap (render colwidth) . inlineListToMuse)
(fmap (render Nothing) . blockListToMuse)
(fmap (render Nothing) . inlineListToMuse)
meta
body <- blockListToMuse blocks
notes <- liftM (reverse . stNotes) get >>= notesToMuse