Latex spacing bug in HTML output
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
In the HTML output of a notebook, there is no spacing between a Latex equation and the line above.
In notebook (correct):

In HTML output (incorrect):

A quick look at the source shows that this is because the MathJax span and div are not wrapped in a `
` in the generated HTML, as in the actual notebook.
Contributor guide
Research direction
Start at the HTML export path that emits the MathJax span and div, and compare its generated structure with the notebook's paragraph structure. Reproduce an equation followed by a line of text and inspect the HTML; done means the MathJax elements are wrapped in a
so the expected spacing is preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100