devilry / devilry-django

Devilry project main repository
http://devilry.org
BSD 3-Clause "New" or "Revised" License
51 stars 24 forks source link

Latex math in feedback is broken #1281

Closed rakfisk1 closed 8 months ago

rakfisk1 commented 9 months ago

When trying to give feedback using either $math$ $\math$ or $mathblock$ $\mathblock$ the entire contents of the block become invisible in preview and feedback.

Pictures: Write mode:

Screenshot 2024-01-28 at 10 29 10

Preview:

Screenshot 2024-01-28 at 10 30 58
torgeirl commented 9 months ago

It looks like the HTML sanitizer introduced in v6.2 with #1275 also escapes $math$/$mathblock$ for Devilry's latex_math modules.

It seems to affect a few of the Markdown tags we want to allow:

My guess is that HTML-sanitizer's keep_typographic_whitespace=True enables multi-line code blocks, but lack support for code indentation or is missing a setting.


Update Jan 30: we are looking at addressing this with a patch (6.2.3)! :wrench:

torgeirl commented 8 months ago

Solved in v6.2.4.