-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
Context
When I rendered a series of MD articles into HTML using the mkdocs-material theme, many compatibility rendering anomalies occurred.
Bug description
I have three bugs for feedback, both of which are about mobile content overflowing the screen width.
The following figures are the rendering results of the mobile model when using the latest Chrome browser on local Windows 11 and enabling developer mode.
bug1: Super long continuous strings cannot automatically wrap.
as the details below
bug2: The inline formulas of KaTeX cannot be wrapped properly.
I raised a similar question not long ago #7941, that is, MathJax's inline formulas cannot wrap normally, and the conclusion I got was that it was an upstream problem, that is, MathJax has not yet implemented the line wrapping behavior of inline formulas in version 3.
Now KaTeX also has this problem.
bug3: Abnormal screen width when there are inline formulas in the table
When there are inline formulas in a table, no content will overflow, but the screen width will be abnormally enlarged.
Related links
Reproduction
Steps to reproduce
pip install mkdocs-material
cd bug/
mkdocs serve
- enter 127.0.0.1:8000
- press F12
- select any mobile model
then you will see all the three bugs in different pages
Browser
Chrome
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 using the built-in info plugin.