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

MathJax images get uploaded in triplicate? #27

Open
1 task
schanzer opened this issue May 1, 2024 · 0 comments
Open
1 task

MathJax images get uploaded in triplicate? #27

schanzer opened this issue May 1, 2024 · 0 comments
Assignees

Comments

@schanzer
Copy link
Member

schanzer commented May 1, 2024

UPDATE: this is a bug in the markdown parser itself! I've filed an issue with them, and hopefully they'll push a fix soon.

No, it's not. This seems to be related to the way custom-fence works. The issue with the second example below is that without the newline the math should be treated as an inline element, instead of a block. But custom-fence seems to do some weird things with inline stuff.

  • Find out how to get custom fence to work properly with inline. Maybe it doesn't!! Maybe we need a new plugin for this? Or make our own?

Reported by @retabak The following markdown results in three copies of the image being uploaded -- but only when the line before MathJax is non-empty

---
# PASS

Just upload one copy, thanks to the space below

$$$ math
1
$$$

---
# FAIL

Upload three copies, thanks to the _lack_ of space below
$$$ math
1
$$$

@schanzer schanzer self-assigned this May 1, 2024
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

1 participant