Markdown read with the Docsy theme's readfile shortcode is not included in TOC

Actually, it doesn’t matter which notation is used to call the condition-text shortcode from within the markdown file you are reading.

This is the same issue:
https://discourse.gohugo.io/t/shortcodes-within-shortcodes-not-rendering/42343

There are a couple of ways around this:

  1. Generate the TOC with JavaScript as suggested here.
  2. Generate the TOC with a partial as suggested here.
1 Like