LaTex render is not working on 1.9.9 containerized on Rocky Linux 9.3
mcorvo opened this issue · comments
Description
I've recently upgraded the VM hosting Hedgedoc to a Rocky Linux release 9.3 (Blue Onyx). Hedgedoc is installed as a container (latest version 1.9.9) and run with Docker version 24.0.7. The database is a Postgres with image 16.1-alpine3.19.
When the user enters some LaTex code, it is not rendered at all. I tried with the old instance (Hedgedoc 1.9.9, Postgres 14.5-alpine, Docker 23.0.3 on Centos 7.9) and it works correctly, so my guess is that the issue may be related to the new OS on which I'm running.
Steps to reproduce
- Open the Feature pages
- Go to the LaTex section
- Look at this code \sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}
Expected behaviour
I should see the code rendered by the MathJax engine, but the code is displayed "as is" in plain text.
Instead of:
Logs
No response
Config
No response
Your Setup
- Host OS: Rocky Linux release 9.3 (Blue Onyx)
- NodeJS version: v20.7.0
- HedgeDoc version: 1.9.9
- Database: Postgres 16.1-alpine3.19
- Docker version: 24.0.7
Additional context
No response
The mis-rendering was my fault: I decided to terminate the TLS connection on an Apache reverse proxy, but I set the parameter CMD_PROTOCOL_USESSL to false. For some reasons I honestly don't understand, the MathJax library was not able to work correctly. Once set the parameter to "true" everything worked fine.