mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 05:43:39 +08:00
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:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user