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
image_bug.zip
Steps to reproduce
- Add the md_in_html extension to mkdocs.yml
- Create a
<figure markdown> element and add the only-light and only-dark images 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
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:
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 withmarkdown="block",markdown="1"andmarkdown="span"and it doesn't seem to make a difference.Related links
Reproduction
image_bug.zip
Steps to reproduce
<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)<figcaption>element<figure>blockBrowser
No response
Before submitting