@@ -1,3 +1,4 @@
1+{-# LANGUAGE NoImplicitPrelude #-}
1{-# LANGUAGE OverloadedStrings #-}
2{-# LANGUAGE OverloadedStrings #-}
3Copyright (C) 2017-2018 Alexander Krotov <ilabdsf@gmail.com>
4Copyright (C) 2017-2018 Alexander Krotov <ilabdsf@gmail.com>
@@ -42,6 +43,7 @@ However, @\<literal style="html">@ tag is used for HTML raw blocks
42even though it is supported only in Emacs Muse.
43even though it is supported only in Emacs Muse.
44module Text.Pandoc.Writers.Muse (writeMuse) where
45module Text.Pandoc.Writers.Muse (writeMuse) where
45import Control.Monad.State.Strict
47import Control.Monad.State.Strict
46import Data.Text (Text)
48import Data.Text (Text)
47import Data.List (intersperse, transpose, isInfixOf)
49import Data.List (intersperse, transpose, isInfixOf)
@@ -185,8 +187,8 @@ blockToMuse (OrderedList (start, style, _) items) = do
185 -> [Block] -- ^ list item (list of blocks)
187 -> [Block] -- ^ list item (list of blocks)
186 -> StateT WriterState m Doc
188 -> StateT WriterState m Doc
187 orderedListItemToMuse marker item = do
189 orderedListItemToMuse marker item = do
188− contents <- blockListToMuse item
190+ contents <- blockListToMuse item
189− return $ hang (length marker + 1) (text marker <> space) contents
191+ return $ hang (length marker + 1) (text marker <> space) contents
190blockToMuse (BulletList items) = do
192blockToMuse (BulletList items) = do
191 contents <- mapM bulletListItemToMuse items
193 contents <- mapM bulletListItemToMuse items
192 -- ensure that sublists have preceding blank line
194 -- ensure that sublists have preceding blank line