-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Context
Hi!
I recently upgraded mkdocs-material from 9.0.15 to 9.2.3 (and mkdocs from 1.4.2 to 1.5.2) and I notice that all pages where the title depends on the markdown section and include an emoji are shifted downwards.
A markdown section is something like that:
# Intégration et Déploiement Continu sur :simple-gitlab: GitlabBug description
When adding an emoji in a first level section title in the markdown page, I expect mkdocs-material to display, at least, the emoji code (for example :simple-gitlab:). It should looks like that:
... or even display the emoji (if typeset plugin is not needed, otherwise the emoji code is sufficient).
But since the mkdocs-material update, it now looks like that:
(Private informations in the screen are hidden)
Related links
- The
typesetplugin, - I didn't find a page in the documentation where an emoji was in the title and displayed while scrolling...
Reproduction
I made this minimal reproductible example .zip file:
mkdocs-material-emoji-title-bug.zip
Edit: More minimal example.
Note : I tried using the step described in Creating a reproduction and adding plugins: - info, but it gave me an importlib.metadata import error while doing mkdocs serve or mkdocs build, so I made the zip file at hand.
Steps to reproduce
- Download the
.zipfile and unzip it, then go inside. - Go inside the
mkdocs/folder. - Type
pipenv installin a terminal (to install packages in virtualenv), - ... and type
pipenv shell(to enable this virtualenv). - Then type
mkdocs serve. - Open a browser in
http://127.0.0.1:8000/. - Scroll down in the main page.
You should notice the page title bug because of the emoji.
Browser
No response
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues and discussions.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a .zip file with a minimal reproduction.

