-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
markdownify resolves page resources to home instead of current page when render hooks are present #9692
Comments
This is a known limitation (or at least known to me, but I think I have shouted about it). This was somewhat a catch 22 situation and needed to be able to implement render hooks for code blocks. When I get to finish #9570 I can make this work as expected (then I have global access to "the current page", as it is now we always use the home page for |
I understand. I just wanted to make sure this was being tracked somewhere. |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
My use case is a render hook for links that checks whether the current page has a parameter set that makes all external links open in a new tab. It would be great if markdownify worked everywhere. |
Pull request closed #9570 |
The result is either a missing resource or the wrong resource. This is limited to the
markdownify
function....Page.RenderString
works as expected.The problem occurs with v0.93.0 and later.
structure
content/test/index.md
layouts/shortcodes/img.html
layouts/_default/_markup/render-image.html
When you run hugo, the result is:
If you do this...
...the site builds but the wrong image is displayed.
Example:
git clone --single-branch -b hugo-github-issue-9692 https://github.com/jmooring/hugo-testing hugo-github-issue-9692 cd hugo-github-issue-9692 hugo
Reference: https://discourse.gohugo.io/t/37735
The text was updated successfully, but these errors were encountered: