-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Context
Adding some image alt text and description with special chars that appear bad encoded, visible to end-reader through glightbox plugin.
Bug description
Mkdocs.yml :
site_name: "Test Material image title encoding"
theme:
name: material
font: false
plugins:
- info
- privacy
Input markdown:
# Welcome to MkDocs
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
## Commands
* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.
## Project layout
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
## Image with title

Output HTML :
[...]
<h2 id="image-with-title">Image with title</h2>
<p>
<img
alt="Cette capture d'écran est très intéressante"
src="assets/external/squidfunk.github.io/mkdocs-material/assets/screenshots/navigation-tabs.png"
/>
</p>
[...]
Related links
- Built-in privacy
- https://squidfunk.github.io/mkdocs-material/reference/images/?h=glig#lightbox
Reproduction
Steps to reproduce
- Add
privacy
to mkdocs.yml - Add image with an alt text with special characters.
- Build & look at the HTML
Browser
Chrome, Firefox
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.
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open