Thank you Aditya.

The main.tex file is meant to be reusable for different document styles. By removing \completecontent altogether from the main template, it would preclude a different document from reusing the main.tex template with a table of contents. I'd like the template to be "reusable"; making modifications to "main.tex" --- or creating a copy --- would subvert that goal.

On Sun, Jul 7, 2019 at 7:17 AM Aditya Mahajan <adityam@umich.edu> wrote:
On Sat, 6 Jul 2019, Thangalin wrote:

> Hello again!
>
> This part of the series describes how to reference *interpolated* strings
> inside Markdown documents.
> https://dave.autonoma.ca/blog/2019/07/06/typesetting-markdown-part-5/
>
> There's a section at the end about eliminating the table of contents from a
> reusable document template. I would have preferred using setups, rather
> than redefining the \completecontent macro, but didn't see an obvious way
> to do so.

Why not simply omit \compltecontent from the pandoc template?