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,
|
||||
inner=self.render_inner(token),
|
||||
packages=self.render_packages(),
|
||||
title=token.title,
|
||||
author=token.author,
|
||||
footer=token.footer
|
||||
title=self.render_raw_text(mistletoe.span_token.RawText(token.title)),
|
||||
author=self.render_raw_text(mistletoe.span_token.RawText(token.author)),
|
||||
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),
|
||||
parskip=cm_to_twip(0.35),
|
||||
inner=self.render_inner(token),
|
||||
title=token.title,
|
||||
author=token.author,
|
||||
footer=token.footer
|
||||
title=self.render_raw_text(mistletoe.span_token.RawText(token.title)),
|
||||
author=self.render_raw_text(mistletoe.span_token.RawText(token.author)),
|
||||
footer=self.render_raw_text(mistletoe.span_token.RawText(token.footer))
|
||||
)
|
||||
|
||||
result = []
|
||||
|
Loading…
Reference in New Issue
Block a user