mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
Typst writer: add blank line in definition lists with multiple definitions.
See discussion #9704.
This commit is contained in:
@@ -324,7 +324,7 @@ defListItemToTypst (term, defns) = do
|
||||
modify $ \st -> st{ stEscapeContext = NormalContext }
|
||||
defns' <- mapM blocksToTypst defns
|
||||
return $ nowrap ("/ " <> term' <> ": " <> "#block[") $$
|
||||
chomp (vcat defns') $$ "]"
|
||||
chomp (vsep defns') $$ "]"
|
||||
|
||||
listItemToTypst :: PandocMonad m => Int -> Doc Text -> [Block] -> TW m (Doc Text)
|
||||
listItemToTypst ind marker blocks = do
|
||||
|
||||
@@ -462,11 +462,13 @@ Multiple definitions, tight:
|
||||
|
||||
/ apple: #block[
|
||||
red fruit
|
||||
|
||||
computer
|
||||
]
|
||||
|
||||
/ orange: #block[
|
||||
orange fruit
|
||||
|
||||
bank
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user