Table of Contents extended to subpages?
A subpage would be a wikilink alone in a paragraph in the current page. So if the wikilink is [mySubpage](), the table of content of the current page would then include the table of contents of mySubpage at the point it appears in the hierarchy.
This should be made available as an option in the configuration file.

Hi, I have a branch implementing this but I would need to do the following change to pandoc:
- export some functions from Text.Pandoc.Writers.HTML which are needed to construct the toc:
defaultWriterState,WriterState,inlineListToHtml,unordList - the type of some functions needed to be generalized to use
StateTinstead ofState
In particular the export of functions from the internal of pandoc is something you may have objections to. I see the following workflows here:
- I open a PR to Pandoc and when and if you accept it, I can open a PR to gitit2 when pandoc is released, the downside is that you would only be able to look at the PR on gitit2 after accepting the one on pandoc.
- alternatively, you can create a branch on gitit2, and I can open a PR there with a git submodule from my branch of pandoc. It is admittidly more complex, but you would be able to see the changes in gitit2 before accepting a PR on pandoc.
I have open PR jgm/pandoc/pull/1771 on pandoc in case you want to choose the first (and simpler) workflow above.