Emojis do not show in toc

Hi,

I use some emojis un my titles, but in the TOC they are not displayed.

For instance:
### 📣 Aide chapitrage vidéo des mini-webinaires
displays as
Aide chapitrage vidéo des mini-webinaires
in the toc.

Is there a way to display emojis?

1 Like

No solution for that?

There’s a solution. Use unicode emoji, and wrap them with backticks `.

In the table of contents, the title will be stripped of backticks, but keep the unicode emoj.

### Test 1

### `📣` Test 2

### Test 3

The drawback is that it looks odd in the post:

If you want the visually perfect solution but slighly convoluted:

### Test 1

### <span data-title-emoji>`🧑‍💻`</span> Test 2

### Test 3

With this CSS

span[data-title-emoji] code {
    background: inherit;
}

Renders:

:information_source: [wrap] won’t work for this purpose in a title, you must go with <span>

3 Likes

Great !!!

Big thanks, it works :folded_hands:

1 Like