aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Barlow <[email protected]>2025-11-12 22:40:15 +0000
committerGitHub <[email protected]>2025-11-12 23:40:15 +0100
commit7b29962d869224e19e677cf5acc3aa3eaec1d352 (patch)
treed14320dfa49612548f40b826d692486113333c56 /src
parenta5576317c9d99ef641e10a68e1fce6656dd26054 (diff)
LaTeX writer: make L1-3 headings work inside blockquotes.
Add mbox before all headings (not just L4+) inside blockquotes. Otherwise LaTeX raises an error. Closes #11281.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 814aa80b9..0dbcdac1d 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -832,7 +832,7 @@ sectionHeader classes ident level lst = do
5 -> "subparagraph"
_ -> ""
inQuote <- gets stInQuote
- let prefix = if inQuote && level' >= 4
+ let prefix = if inQuote
then text "\\mbox{}%"
-- needed for \paragraph, \subparagraph in quote environment
-- see http://tex.stackexchange.com/questions/169830/