Recently looking at https://codeberg.org/fediverse/fep/src/branch/main/fep/888d/fep-888d.md and noticed some Markdown rendering issues that I don't remember being there half a year ago or so...
For example, https://codeberg.org/fediverse/fep/src/branch/main/fep/888d/fep-888d.md#exampleB behaves like so:
Upon a fresh page load or refresh, it seemingly navigates to the correct section.
However, inspecting the HTML, we see that there are some errors.
The following Markdown input:
<section id="exampleB" resource="https://w3id.org/fep/888d/exampleB" typeof="owl:ObjectProperty">
<h3>exampleB</h3>
Produces the following HTML:
<section id="user-content-exampleB">
<h3><a class="anchor" href="#"><svg ...>...</svg></a>exampleB</h3>
Note that the id="exampleB" somehow becomes id="user-content-exampleB". This has two noticeable side effects:
- An HTML parser no longer finds anything when searching for an element with the selector
*[id="exampleB"].
- Changing the fragment component in the URL bar and navigating there does not scroll the browser to the correct section anymore.
### Comment
Recently looking at https://codeberg.org/fediverse/fep/src/branch/main/fep/888d/fep-888d.md and noticed some Markdown rendering issues that I don't remember being there half a year ago or so...
For example, https://codeberg.org/fediverse/fep/src/branch/main/fep/888d/fep-888d.md#exampleB behaves like so:
Upon a fresh page load or refresh, it seemingly navigates to the correct section.
However, inspecting the HTML, we see that there are some errors.
The following Markdown input:
```md
<section id="exampleB" resource="https://w3id.org/fep/888d/exampleB" typeof="owl:ObjectProperty">
<h3>exampleB</h3>
```
Produces the following HTML:
```html
<section id="user-content-exampleB">
<h3><a class="anchor" href="#"><svg ...>...</svg></a>exampleB</h3>
```
Note that the `id="exampleB"` somehow becomes `id="user-content-exampleB"`. This has two noticeable side effects:
1. An HTML parser no longer finds anything when searching for an element with the selector `*[id="exampleB"]`.
2. Changing the fragment component in the URL bar and navigating there does not scroll the browser to the correct section anymore.