-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Context
I want to add light and dark mode images with a common caption so I'm trying to use the md_in_html extension as follows:
<figure markdown>


</figure>Bug description
This seems to happen whenever using the md_in_html extension. It doesn't matter if <figcaption> is used. In dark mode, the content after the figure seems to be pushed down slightly lower compared to light mode.
When inspecting the html, the height of the <p> tag is a bit more in dark mode compared to light mode. I have also tried it with markdown="block", markdown="1" and markdown="span" and it doesn't seem to make a difference.
Related links
Reproduction
Steps to reproduce
- Add the md_in_html extension to mkdocs.yml
- Create a
<figure markdown>element and add theonly-lightandonly-darkimages one after another (order doesn't matter, it's always the dark mode content that appears differently) - Optionally, include the
<figcaption>element - Add some content below this
<figure>block - View the page
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
