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
pymdownx.tabbed breaks relative-url-rewrite for nested imports #179
Comments
This is the expected behaviour as the _part-site.md file includes _screenshot.md which is just a replacement for: This is the screenshot site from `docs/a`
![Some title](./assets/screenshot.png) The link is just handled by Mkdocs as if the file were in the same relative folder. I think that you need to use an absolute path. What behaviour you would expect here? |
Outside of the tabbed environment the plugin successfully rewrites the relative path accordingly, so the image shows in the a and b subpaths 👀 |
I'm not experiencing the same behaviour as you with the example that you've shared. The path is not rewritten correctly when is not included into a pymdownx.tabbed tab. |
With the example originally shared you don't, yes, because that was designed to show-off what was an obvious bug to me. I didn't include it to show that it is working under But that can be changed, see below:
As for your this:
The readme states:
So, with the updated example you can see, with the include chain Oh and as I'm writing this, I discovered it's not limited to the tabbed environment, it's also broken if indented into a list (see example code) So I'm sorry, but according to the readme and the fact that it's working without additional environments (like lists, tabbed,...) around it, I'm still thinking of this as a bug or at least a mentionable technical limit, but not expected behaviour. |
I have the following example structure:
While the on page-a the image is shown fine, on page-b it is not found, as the relative image url wasn't rewritten correctly.
This behaviour is only the case, when in
_part-site.md
the_screenshot.md
is included into a pymdownx.tabbed tab.Attached is a minimal example for this scenario
The text was updated successfully, but these errors were encountered: