-
-
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
Python version: 3.11
Mkdocs-material version: 9.5.17
OS: MacOS Sonoma 14.4.1
Bug description
When the code inside a code block is a bit long (that makes it horizontally scrollable), the highlighted lines (via hl_lines=""
) break and don't cover the full width of the page.
Related links
Reproduction
9.5.17-code-highlighting-issue.zip
Steps to reproduce
Create a code block with a long line highlighted with hl_lines=""
. View the code block in a lower screen size (like mobile) and you'll spot the issue.
Browser
Chrome, Brave
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.
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open