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.
This commit is contained in:
James Barlow
2025-11-12 23:40:15 +01:00
committed by GitHub
parent a5576317c9
commit 7b29962d86
+1 -1
View File
@@ -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/