Skip to content

<a name="..."> no longer rendered in Markdown cells #7754

@orionlee

Description

@orionlee

Description

<a name="...">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

# Section Foo
<a name="foo">

In v7.4.7, the <a> is rendered as <a rel="nofollow" target="_self"></a> , with name stripped, effectively making the section anchor useless.

Expected behavior

The name attribute of <a> 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 <a name="..."> in markdown cells to jump to specific section of a notebook.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions