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

Image paths aren't relative to presented markdown file #80

Closed
TymekDev opened this issue Sep 5, 2020 · 1 comment · Fixed by #81
Closed

Image paths aren't relative to presented markdown file #80

TymekDev opened this issue Sep 5, 2020 · 1 comment · Fixed by #81
Labels
bug Something isn't working

Comments

@TymekDev
Copy link
Contributor

TymekDev commented Sep 5, 2020

Describe the bug
The paths provided in the images (and codio) inclusion statements ![](path/to/image) are treated as relative to current working directory and not to the markdown file location.

To Reproduce
This won't work (see the screenshot below):

pip install present
git clone https:/vinayak-mehta/present
cd present

present examples/sample.md

This will work just fine:

cd examples
present sample.md

Expected behavior
I would expect present to work without having to change directory first.

Screenshots
image

Environment

  • OS: Ubuntu 20.04.1 LTS
  • Terminal emulator: kitty
  • Python version: 3.8.2
  • present version: 0.5.1
@vinayak-mehta
Copy link
Owner

Thanks for reporting this and opening a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants