Kattis / problemtools

Tools to manage problem packages using the Kattis problem package format.
MIT License
105 stars 72 forks source link

plasTeX2 (py3) renders sample data incorrectly #162

Closed ghamerly closed 4 years ago

ghamerly commented 4 years ago

If the sample data in a problem contains special characters that become HTML entities (e.g. < becomes &lt;), then the cgi.escape() at https://github.com/Kattis/problemtools/blob/develop/problemtools/ProblemPlasTeX/ProblemsetMacros.py#L50 properly converts the text (<) to its HTML entity (&lt;). However, at some later point in the conversion process, the &lt; becomes &amp;lt;, which is incorrect. I'm still tracing where this happens.