Will the great creators from above bestow upon us lesser nobles the powers of regular expressions in the upcoming release of hugo 0.16? As a lowly user who has taken great pleasure in designing elaborate work arounds for routines that might be construed as “trivial” for regular expressions… I’m willing to sacrifice my pride, a slower hugo build time, and even bep’s blessings in return for the holy grail of pattern matching functionality.
@moorereason Maybe this is a dumb question, but could replaceRE and findRE have implications for the TOC shortcode? That is, creating a top-level ul > li based on the highest level heading within body copy rather than being based on h1/h2/h3 as it is now? I ask because I see this as the biggest shortcoming of the TOC shortcode right now.
OR a more powerful feature would be able to pass an argument(s) showing the starting/ending heading level for the TOC (eg, creating the div/nav starting at h3 and h4 rather than h1/h2).
current
{{.TableOfContents}}
better
{{.TableOfContents "h3" "h5" }}
Nevertheless, I dig the CSS hack mentioned in other feeds, but ultimately the markup should stay true to the content…
@bep the keyboard warrior has Bep Blessed us with his presence
Would you like me to hold your hand and help you tip toe through these little pattern matching games? Man up, be a leader…not a dictator.