jupyter / jupyter/notebook

Hard max length for latex code in markdown cells?

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

Description

There seems to be a max limit to the number of characters I can input in my latex-markdown cell. The code below compiles fine. If I, however, try to add a new line with more than 21 characters, it doesn't compile (see the bottom of the "not working"-file.

I am sorry for the horrible code I am posting below, but I was unable to reproduce it in a clean way and was forced to just anonymize the real code and replace it with this silly-looking latex code.


[latex in markdown - working.txt](https://github.com/jupyter/notebook/files/3409672/SO.-.working.txt)
[latex in markdown - not working.txt](https://github.com/jupyter/notebook/files/3409671/SO.-.not.working.txt)

Contributor guide

Open the contributing guide

Research direction

Start by comparing the attached “SO. - working.txt” and “SO. - not working.txt” files, focusing on the added line that exceeds 21 characters. Trace how LaTeX in markdown cells is processed and identify where the limit appears. Done means the reproduced longer line compiles without changing valid existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, latex, markdown
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.