-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
TableOfContentsc causes timeout when {{ exists in code block. #10654
Comments
When you include 🐔 → 🥚 → 🐔 → 🥚 → … |
Re-opening. |
To be clear: This should work: In a shortcode in page "foo":
Should work.
Will create an infinite recursion. What I suspect is creating a infinite recursion above is the noop shortcode with:
I'm pretty sure it's not about any |
I can reproduce this as described with v0.100.0 and later, but not with v0.99.1. Git bisect says 9e904d7 is the first bad commit.
|
Ah, OK, yea then I understand, thanks for the clarification... |
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. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
Description
I discovered this while using the geekdocs theme, but as far as I can tell the bug is not specific to that theme.
If your page has:
1. A code block with the sequence
{{
somewhere in it2. That code block is wrapped in a shortcode that renders it to html
3. A table of contents
then, it will cause a timeout and fail to render.
Oddly enough, removing the table of contents from such a page fixes the problem. As does, having the code block not be wrapped in a shortcode.
Error message
How to reproduce
layouts/shortcodes/noop.html
layouts/shortcodes/toc.html
content/posts/my-first-post.md
The text was updated successfully, but these errors were encountered: