mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-19 02:22:09 +08:00
Muse writer: indent lists inside Div
This commit is contained in:
@@ -259,7 +259,7 @@ blockToMuse (Table caption _ _ headers rows) = do
|
||||
$$ body
|
||||
$$ (if null caption then empty else " |+ " <> caption' <> " +|")
|
||||
$$ blankline
|
||||
blockToMuse (Div _ bs) = blockListToMuse bs
|
||||
blockToMuse (Div _ bs) = flatBlockListToMuse bs
|
||||
blockToMuse Null = return empty
|
||||
|
||||
-- | Return Muse representation of notes.
|
||||
|
||||
@@ -282,7 +282,9 @@ tests = [ testGroup "block elements"
|
||||
, " |+ Table 1 +|"
|
||||
]
|
||||
]
|
||||
-- Div is trivial
|
||||
, "div with bullet list" =:
|
||||
divWith nullAttr (bulletList [para $ text "foo"]) =?>
|
||||
unlines [ " - foo" ] -- Making sure bullets are indented
|
||||
-- Null is trivial
|
||||
]
|
||||
, testGroup "inline elements"
|
||||
|
||||
Reference in New Issue
Block a user