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

LinkRenderer hook is not applied to all links #8755

Closed
jcayzac opened this issue Jul 15, 2021 · 2 comments
Closed

LinkRenderer hook is not applied to all links #8755

jcayzac opened this issue Jul 15, 2021 · 2 comments
Assignees
Milestone

Comments

@jcayzac
Copy link

jcayzac commented Jul 15, 2021

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.85.0+extended darwin/amd64 BuildDate=unknown

Does this issue reproduce with the latest release?

Yes

Summary

When using the default goldmark renderer, a custom link renderer defined in layouts/_default/_markup/render-link.html is applied only to markdown links using the [text](link) form.

Expected behavior

  • [foo](https://bar.baz/): hook applied
  • <https://bar.baz/>: hook applied
  • https://bar.baz/: hook applied

Actual behavior

  • [foo](https://bar.baz/): hook applied
  • <https://bar.baz/>: hook not applied
  • https://bar.baz/: hook not applied
@jcayzac
Copy link
Author

jcayzac commented Jul 27, 2021

@bep Thanks!

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants