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
docs: Remove the findRE TOC example #3188
Comments
If this is in the docs, it should be removed, not be made more complex. Adding |
There isn't a replaceRE TOC example in the (new or current) docs. Are you talking about findRE, @bep? |
I'm not talking about anything. If there isn't a replaceRE TOC example in the docs, then the thread starter must have dreamed it (which I doubt), and then this issue could be closed. |
That would be a very dull dream: https://gohugo.io/templates/functions/#findre You framed your response in the example of |
OK, I have updated the issue title. But the relevant example is in the above. |
This has been removed from the |
Closes rdwatters#47 Fixes gohugoio/hugo#3188
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. |
In the documentation for generating a table of contents using findRE to grab
h2
's, the<a href="#{{ . | plainify | urlize }}">
will not correctly generate links for heading anchors that have non-alphanumeric characters in them, such as periods. The workaround I came up with was:Which replicated the process described in heading anchor generation.
The text was updated successfully, but these errors were encountered: