-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
lingering lack of full control over TOC / table of contents #5784
Comments
What version of pandoc are you using?
I get no table of contents. |
Hi - I am using 2.7.3 I think I might have been up too late last night and made incorrect observation. Thanks for the correction. However, still, should I expect to be required to call pandoc with Example:
|
Correct. You must use |
Understood. Makes better sense now. So, for example, a template of course could introduce On related topic, is there any way of pandoc getting the URL or path to the template from the YAML front matter? Would this be consistent with your vision? |
Yes.
No and no. A given document could be rendered to many different formats, each with a different template. |
Thanks for your thorough consideration and guidance. |
I think the resolution to #2872 should be reconsidered.
I find its attempt to maintain backwards compatibility with interpretation of the
toc
metadata ultimately fails. I think the changes to thewriters
that assign the value oftable-of-contents
totoc
should be reverted, while keeping all other changes.Keeping it as-is, and setting
toc
to the value oftable-of-contents
causes a TOC section to be rendered by the template even iftoc: false
appears in YAML.In short: let 'toc' be the boolean switch ONLY, and have 'table-of-contents' hold the, erhm, well, the pandoc rendered TOC.
The accordingly adjusted commit message would be, instead of:
rather:
Then, what I think remains is:
table-of-contents
if toc is true, determined after consulting:toc: true
)--toc
orM toc=true
)After that, it would be grand to allow specifying in YAML header the (default) output format and (default) template to be used for that format... #5584 (analogous to RMarkdown's Output formats).
The text was updated successfully, but these errors were encountered: