jupyter / jupyter/notebook

Latex spacing bug in HTML output

Open
#392 4 comments 2 reactions 0 assignees View on GitHub
enhancement
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):
![screen shot 2015-09-04 at 12 43 10 pm](https://cloud.githubusercontent.com/assets/2199875/9679759/791b412a-5302-11e5-8724-f82848639202.png)

In HTML output (incorrect):
![screen shot 2015-09-04 at 12 43 01 pm](https://cloud.githubusercontent.com/assets/2199875/9679760/7a4bfe22-5302-11e5-8104-6aa3e444a315.png)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.