Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline admonition's title is covered when used in conjunction with a titled code block. #3836

Closed
5 tasks done
Ultra-Instinct-05 opened this issue Apr 24, 2022 · 2 comments
Closed
5 tasks done
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open

Comments

@Ultra-Instinct-05
Copy link

Ultra-Instinct-05 commented Apr 24, 2022

Contribution guidelines

I've found a bug and checked that ...

  • ... the problem doesn't occur with the mkdocs or readthedocs themes
  • ... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

When an code block with a title is used along with an inline admonition, then the title of the codeblock covers the title of the inline admonition.

Please refer to this discussion for screenshots
#3835

Expected behaviour

When a inline admonition is used in conjunction with a titled code block, then both the admonition title and the code block title should be visible.

Actual behaviour

When a inline admonition is used in conjunction with a titled code block, then the admonition title is covered by the code block.

Steps to reproduce

  1. Download the attached zip file that contains an extremely minimal setup.
  2. Create a virtual environment using virtualenv and install the dependencies pip install -r requirements.txt
  3. Activate the environment and run mkdocs serve and navigate to http://localhost:8000
  4. The opened page should have a small demo of the bug.

Package versions

  • Python: 3.9.0
  • MkDocs: 1.3.0
  • Material: 8.2.9

Configuration

site_name: Test Site
theme:
  name: material
docs_dir: src/
nav:
  - Bug Demo: test.md
markdown_extensions:
  - admonition
  - pymdownx.highlight
  - pymdownx.superfences

System information

  • Operating system: Windows 11
  • Browser: Firefox Nightly 101.0a1
@squidfunk
Copy link
Owner

Thanks for reporting! However, I think I already fixed it in 4151702, as noted in #3835 (comment)

@squidfunk squidfunk added bug Issue reports a bug resolved Issue is resolved, yet unreleased if open labels Apr 24, 2022
@squidfunk
Copy link
Owner

Released as part of 8.2.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open
Projects
None yet
Development

No branches or pull requests

2 participants