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 in SVG images is not rendered correctly in published books but looks fine in private view #2351

Open
cr0mll opened this issue Jun 20, 2024 · 0 comments
Labels

Comments

@cr0mll
Copy link

cr0mll commented Jun 20, 2024

Bug description

LaTeX embedded in SVG images is rendered verbatim in the published book, but gets rendered correctly when viewing the book via the app.gitbook.com domain.

Essentially, this is what gets published:

Bad LaTeX

This is what it is supposed to look like and how it looks in the book preview from app.gitbook.com:

Correct LaTeX

How to reproduce

  1. Embed LaTeX into an SVG image (in this case, I use draw.io, but anything works)
  2. Embed SVG in gitbook via app.gitbook.com.
  3. Merge your edits into your book and visit the page where you uploaded the SVG image. The LaTeX will be broken in the published version.

Additional context

All SVGs are created in draw.io with Extras -> Mathematical Typesetting enabled. You can find countless other examples as well as the SVG images themselves on the link of the book and its repository (look mainly under Cryptography because most LaTeX containing images are there).

GitBook

Repository

@cr0mll cr0mll added the bug label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant