jupyter / jupyter/notebook

Markdown rendering of double supscripts in .ipynb file differs from .md file on github

Open
#6,503 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

**Describe the bug**
1. When I render a double subscript in an .md file (like here), it looks correct, like this:
TabN2Ostald

2. When I do the same in a markdown block in an .ipynb file, it does not render correctly on github:
![image](https://user-images.githubusercontent.com/26977911/182625552-c8afc70e-a00c-4ea7-b7f4-3522e71e9bf2.png)
See the file here: https://github.com/segesdk/SAF_dokumentation/blob/main/N2O_Stald_Lager.ipynb

3. Sidenote: the rendering of the .ipynb file in VS code is also correct:
![image](https://user-images.githubusercontent.com/26977911/182626197-cf63239a-1eb3-406d-beb6-209a3dca34f9.png)

**To Reproduce**
Type in this code - the last < /sub > is not rendered correctly (see 2. above)
![image](https://user-images.githubusercontent.com/26977911/182627322-324313b6-79fe-421b-84bc-43343c2ace4b.png)

**Expected behavior**
I expect 2 to look like 1

**Screenshots**
See above

**Desktop (please complete the following information):**

- OS: Windows 10
- Browser Edge
- Version 103.0.1264.77

**Additional context**
none

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the nested-subscript example from the linked N2O_Stald_Lager.ipynb and compare it with the equivalent .md rendering on GitHub. Determine whether the discrepancy is in notebook rendering or GitHub's .ipynb renderer; done means the closing nested subscript renders consistently with the .md example.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.