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

TeX: offline rendering and image insertion #874

Open
adam-p opened this issue Nov 9, 2024 · 0 comments
Open

TeX: offline rendering and image insertion #874

adam-p opened this issue Nov 9, 2024 · 0 comments

Comments

@adam-p
Copy link
Owner

adam-p commented Nov 9, 2024

See #144 and #261 for background.

We currently (and have always) used a third-party service for TeX rendering -- Google and now CodeCogs. There are two really bad things that come with this:

  1. User math is being sent to the third party.
  2. If the third party service goes away (like when Google shut down the API we were using), the rendering dies. And not just when writing a new email, but also when reading the email.

The ideal would be to render the math image locally and include it in the rendered MD->HTML output. A big problem with that is that there's no easy way to do it with (for example) Gmail; images with inline data don't work, etc.

However, maybe it's possible to do this by pasting the image; see this comment for details. This is no small task, as it's a fundamental change. It needs a proof of concept that can be tested in multiple email providers and other sites -- there's a very good chance that they don't all support image-pasting and so this method would work worse than the current DOM-insertion-with-remote-image method.

@adam-p adam-p changed the title LaTeX: offline rendering and image insertion TeX: offline rendering and image insertion Nov 10, 2024
@adam-p adam-p mentioned this issue Nov 10, 2024
mtlynch added a commit to mtlynch/markdown-here that referenced this issue Nov 16, 2024
I noticed from adam-p#874 that Markdown Here's privacy policy was out of date, so I took a pass at the policy language to disclose data sharing with CodeCogs for math rendering.
adam-p added a commit that referenced this issue Dec 11, 2024
…TeX support off by default

This is prompted by PR#877, where a user pointed out that the caveat should be present.

I am uncomfortable enough with this that I'm making the feature off by default. If #874 (local LaTeX rendering) ever gets implemented, this should be again made on by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant