I’m currently working on a project that requires a lot of re-using information on multiple pages via shortcodes. In some cases, that means pulling in structured data using site.Data
and in other cases that means pulling in small bits of Markdown using readFile
. The problem I’m running into is that the TableOfContents
doesn’t seem “aware” of anything that’s introduced into the page via shortcodes, which means that none of the headers inside shortcodes end up in the table of contents. I’m really hoping to avoid the only workaround I can think of, which is using Scratch
or some other mechanism to build the TOC by hand.
Is there a way around this? Perhaps a configuration parameter I’m not seeing in the docs?