-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
String functions within render hooks see HAHAHUGOSHORTCODE #7416
Comments
The long story short: You need to use the |
Shall I close this as a documentation issue, and submit a documentation PR, or should it be addressed in code? |
I guess it's both. The best thing to do on the "code side" is to raise an error, I suspect. |
A Google search shows that "HAHAHUGOSHORTCODE" is visible on several live sites. For example: 1) https://developer.servicenow.com/blog.do?p=/categories/now-creator/ 2) https://www.juliabloggers.com/author/julia-on/ We're going to add this to the list of strings that we grep for prior to deployment, but I suspect that's a quality control step that most do not or will not perform. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
To Reproduce
git clone --single-branch -b hugo-github-issue-7416 https://github.com/jmooring/hugo-testing hugo-github-issue-7416 cd hugo-github-issue-7416 hugo server
Then visit http:https://localhost:1313/post/test/.
Description
Content page contains the following markdown:
layouts/_default/_markup/render-link.html contains this code:
This renders:
Other
Reported in https://discourse.gohugo.io/t/render-link-functionality-not-working/26358/.
The text was updated successfully, but these errors were encountered: