This topic is a wiki page to provide answers to some questions that frequently appear in the community.
Why was the PDF Export feature removed?
We used a chrome-headless instance to generate the PDFs, but that led to some security vulnerabilities and was therefore deactivated. There are currently plans to re-add this feature in a safe way, but this will most likely take some time and can be expected at the earliest with 2.1 (but could also take longer).
In the mean time you can use your browsers print to PDF Feature. This page explains how to do that for multiple browsers.
Why did you switch from MathJax to KaTeX?
The new react frontend, that was introduced with HedgeDoc 2.0 switched from MathJax 2 to KaTeX, because:
- KaTeX is much faster than MathJax
- The MathJax React Component is not maintained and doesn’t support MathJax 3
- KaTeX supports every command you’ll need for math expressions
Why are code-blocks with ‘sequence’ as language deprecated?
Starting with HedgeDoc 2.0, mermaid is used for rendering sequence-diagrams. The syntax doesn’t change. To remove the deprecation warning, simply change the codeblock-“language” from
mermaid and insert a single line with
sequenceDiagram just before your diagram content.
```sequence Alice->>John: Hello John, how are you? John-->>Alice: Great! ```
```mermaid sequenceDiagram Alice->>John: Hello John, how are you? John-->>Alice: Great! ```