**Steps to replicate the issue** (include links if applicable):
* Log out or enable the Vector 2022 skin in your preferences.
* Go to any page on any French-language wiki that shows a table of contents with `? ! : ; « »` in headings.
** Example: https://fr.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Le_Bistro/8_d%C3%A9cembre_2022&oldid=199326295
**What happens?**:
Normal spaces (U+0020) shown instead of [[ https://en.wikipedia.org/wiki/Non-breaking_space | non-breaking spaces ]] (U+00A0) before `? ! ; »` and after `«`.
```
<span class="sidebar-toc-numb">2</span>Renommer la page « Informatique durable » en « Numérique responsable » ?</div>
```
{F35846177}
**What should have happened instead?**:
```
<span class="sidebar-toc-numb">2</span>Renommer la page « Informatique durable » en « Numérique responsable » ?</div>
```
{F35846179}
**Other information**
The issue doesn't happen in the body of page itself, where the non-breaking spaces are correctly applied in the headings:
```
<span id="Renommer_la_page_.C2.AB_Informatique_durable_.C2.BB_en_.C2.AB_Num.C3.A9rique_responsable_.C2.BB_.3F"></span><span class="mw-headline" id="Renommer_la_page_«_Informatique_durable_»_en_«_Numérique_responsable_»_?" data-mw-thread-id="h-Renommer_la_page_«_Informatique_durable_»_en_«_Numérique_responsable_»_?-20221208080700"><span data-mw-comment-start="" id="h-Renommer_la_page_«_Informatique_durable_»_en_«_Numérique_responsable_»_?-20221208080700"></span>Renommer la page « Informatique durable » en « Numérique responsable » ?<span data-mw-comment-end="h-Renommer_la_page_«_Informatique_durable_»_en_«_Numérique_responsable_»_?-20221208080700"></span></span>
```