-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Including markdown is buggy and local images do not work #691
Comments
The logic for determining relative imports sits here: Lines 376 to 383 in 1b36ea2
The |
IMO regex based workarounds are a very bad idea. I might create a patch to address the issue at hand. While switching to an extensible commonmark compliant markdown parser is a big change, it will remove need of such hacks. This link lists some of them. Markdown-it is fairly extensible. |
This is a matter of setting the relative path correctly, not a matter of regexes or the markdown engine we are using. :) |
I have created #692. Its a minimal fix but should work for the meanwhile :) |
Problem Description
If you include a markdown and try to link a local image it does not work
A clear and concise description of what the bug is.
Steps to reproduce the behavior:
doc/img.png
doc/include.md
with an image link![img](./img.png)
.. include ../doc/include.md
./doc/img.png
but that is incorrect markdownSystem Information
Paste the output of "pdoc --version" here.
14.4.0
The text was updated successfully, but these errors were encountered: