Make 4th level heading take into account \quotemargin
This commit is contained in:
parent
d213caee2d
commit
122c18fa69
@ -101,7 +101,7 @@ class LaTeXRenderer(mistletoe.latex_renderer.LaTeXRenderer):
|
|||||||
|
|
||||||
if token.level == 4:
|
if token.level == 4:
|
||||||
heading_last, self.heading_last = self.heading_last, False
|
heading_last, self.heading_last = self.heading_last, False
|
||||||
return format(r'{\par\leftskip=<lmarg>\itshape <content>\nopagebreak\par}',
|
return format(r'{\par\leftskip=\dimexpr\quotemargin+<lmarg>\relax\itshape <content>\nopagebreak\par}',
|
||||||
content=self.render_inner(token)
|
content=self.render_inner(token)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user