`<a name="...">` no longer rendered in Markdown cells
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
## Description
``no longer renders in markdown cells in v7.4.7 .
It works in the previous version I used, v7.1.3 (w/ jupyterlab 4.1.6), and older versions. It is as if some sanitizer logic too aggressively strips out `name` attribute.
## Reproduce
Enter the following in markdown cell
```md
# Section Foo
```
In v7.4.7, the `` is rendered as `` , with `name` stripped, effectively making the section anchor useless.
## Expected behavior
The `name` attribute of `` should be retained.
## Context
- Operating System and version: Windows 11
- Browser and version: Chrome 141
- Jupyter Notebook version: v7.4.7 (jupyterlab 4.4.10)
I use `` in markdown cells to jump to specific section of a notebook.
Contributor guide
Research direction
Start by reproducing the Markdown-cell example in Jupyter Notebook v7.4.7 and comparing it with v7.1.3. Trace the sanitizer or Markdown-rendering path that removes the anchor's name attribute, then verify that the attribute is retained and that the regression is covered by a test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100