Skip to content

pymdownx.tabbed breaks relative-url-rewrite for nested imports #179

@9Lukas5

Description

@9Lukas5

I have the following example structure:

docs
├── a
│   ├── assets
│   │   └── screenshot.png   
│   ├── page-a.md                       # imports _part-site.md
│   ├── _part-site.md                   # imports _screenshot.md
│   └── _screenshot.md              # has image with relative path to assets/screenshots.png
├── b
│   └── page-b.md                       # imports ../a/part-site.md
└── index.md

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions