Correctly escape document information
This commit is contained in:
parent
da6a35b0d6
commit
d4fa0ae689
@ -316,7 +316,7 @@ class LaTeXRenderer(mistletoe.latex_renderer.LaTeXRenderer):
|
|||||||
return format(template,
|
return format(template,
|
||||||
inner=self.render_inner(token),
|
inner=self.render_inner(token),
|
||||||
packages=self.render_packages(),
|
packages=self.render_packages(),
|
||||||
title=token.title,
|
title=self.render_raw_text(mistletoe.span_token.RawText(token.title)),
|
||||||
author=token.author,
|
author=self.render_raw_text(mistletoe.span_token.RawText(token.author)),
|
||||||
footer=token.footer
|
footer=self.render_raw_text(mistletoe.span_token.RawText(token.footer))
|
||||||
)
|
)
|
||||||
|
@ -276,9 +276,9 @@ class RTFRenderer(mistletoe.base_renderer.BaseRenderer):
|
|||||||
flushright=cm_to_twip(21 - 2 - 2),
|
flushright=cm_to_twip(21 - 2 - 2),
|
||||||
parskip=cm_to_twip(0.35),
|
parskip=cm_to_twip(0.35),
|
||||||
inner=self.render_inner(token),
|
inner=self.render_inner(token),
|
||||||
title=token.title,
|
title=self.render_raw_text(mistletoe.span_token.RawText(token.title)),
|
||||||
author=token.author,
|
author=self.render_raw_text(mistletoe.span_token.RawText(token.author)),
|
||||||
footer=token.footer
|
footer=self.render_raw_text(mistletoe.span_token.RawText(token.footer))
|
||||||
)
|
)
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
|
Loading…
Reference in New Issue
Block a user