Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX - \underbrace nor \overbrace are rendering properly #1566

Closed
mattiasJohnson opened this issue Mar 5, 2020 · 2 comments
Closed

LaTeX - \underbrace nor \overbrace are rendering properly #1566

mattiasJohnson opened this issue Mar 5, 2020 · 2 comments
Assignees

Comments

@mattiasJohnson
Copy link

Describe the bug
The LaTeX commands \underbrace{a}_{b}, \overbrace{c}^{d} are not rendering properly. They succesfully place the expression under (or over) but the braces do not render.

To Reproduce

  1. Insert the LaTeX code
$$
\underbrace{a}_{b}
$$

respectively

$$
\overbrace{c}^{d}
$$
  1. Render page and observe that there are no brackets.

Expected behavior


\underbrace{a}_{b}

Succesful rendering from KaTeX.org:
image

Failed rendering in wiki.js:
image


\overbrace{c}^{d}

Succesful rendering from KaTeX.org:
image

Failed rendering in wiki.js:
image


Host Info:

  • OS: Ubuntu 18.04, Docker
  • Wiki.js version: 2.1.114
  • Database engine: postgres 11.6

Additional context
I have no idea how the KaTeX module works but could I be missing some fonts locally perhaps or would it be related to how the module is implemented in wiki.js?

@NGPixel
Copy link
Member

NGPixel commented Mar 6, 2020

You need to disable HTML Sanitization under Admin > Rendering > HTML > Security, then re-save the page again.

I'm still investigating why the sanitizer breaks katex but disabling the option should fix your issue.

@NGPixel NGPixel closed this as completed Mar 6, 2020
@NGPixel
Copy link
Member

NGPixel commented Mar 6, 2020

Fixed by 830f516

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants