Make 4th level heading take into account \quotemargin

This commit is contained in:
RunasSudo 2021-09-09 00:41:33 +10:00
parent d213caee2d
commit 122c18fa69
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -101,7 +101,7 @@ class LaTeXRenderer(mistletoe.latex_renderer.LaTeXRenderer):
if token.level == 4:
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)
)