From 966bd94ba268216f9d1492287638fd0b725dd503 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 29 Sep 2018 23:29:32 -0700 Subject: LaTeX writer: Fix description lists contining highlighted code. Closes #4662. --- src/Text/Pandoc/Writers/LaTeX.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 6042f2765..7be3fce28 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -870,9 +870,11 @@ defListItemToLaTeX (term, defs) = do else term' def' <- liftM vsep $ mapM blockListToLaTeX defs return $ case defs of - ((Header{} : _) : _) -> + ((Header{} : _) : _) -> "\\item" <> brackets term'' <> " ~ " $$ def' - _ -> + ((CodeBlock{} : _) : _) -> -- see #4662 + "\\item" <> brackets term'' <> " ~ " $$ def' + _ -> "\\item" <> brackets term'' $$ def' -- | Craft the section header, inserting the secton reference, if supplied. -- cgit v1.2.3