Inline Admonition Overlap
See original GitHub issue- I’ve read the contribution guidelines and agree with them
I’ve found a bug and checked that …
- … the problem doesn’t occur with the default MkDocs template
- … the problem is not in any of my customizations (CSS, JS, template)
- … the documentation does not mention anything about my problem
- … there are no open or closed issues that are related to my problem
Description
Inline end admonitions are overlapped by regular admonitions when previously they would be well padded and contained.
Expected behavior
No overlap between admonitions.
Actual behavior
Steps to reproduce the bug
Markdown:
# Admonition Test
!!! info inline end
I too am an admonition.
!!! warning
I am an admonition.
Package versions
- Python: 3.7.3
- MkDocs: 1.1.2
- Material: 7.0.5+insiders.2.2.1
Project configuration
site_name: My Docs
theme:
name: material
markdown_extensions:
- admonition
System information
-
OS: linux-gnu
-
Browser: Chrome
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Inline admonitions/details overlap other details #2336 - GitHub
When you set an admonition or detail block as inline, following admonition blocks will adapt to its size, but detail blocks will stay...
Read more >Help:Formatting Templates - OpenGL Wiki
Admonitions are paragraphs that are offset from the main flow of the text, usually to indicate a notification of some kind.
Read more >How can I make inline (i.e., not floating) admonition blocks in ...
How can I make admonition blocks that are 'inline' with surrounding text and reflow with it (unlike floating elements such as figures) ...
Read more >Changelog - Material for MkDocs - GitHub Pages
Modernized appearance of admonitions (with fallback, see docs); Improved appearance of inline code blocks in admonition titles ...
Read more >Convertng Markdown admonition syntax to HTML, using Lua ...
RawInline ('html', '</div>') } ) end end. preview output(the first paragraph) $ pandoc test.md --lua-filter f.lua <div class="admonition ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That was a fast fix – c6e15970.
FYI, I’m only able to reproduce this error if you use inline admonitions inside admonitions. If you use them on the top-level the margins are correct. This is not related to the current issue, but you can open a new one if you like:
Markdown to reproduce: