Is it possible to opt into generating a https://book.clerk.vision/#table-of-contents when the source is a Markdown file, not a Clojure namespace?
yes, add a Clojure code block with a namespace declaration and the metadata, iirc a visibility marker should also work but not at a computer to try this right now
Thank you! That did the trick 😁 The following shows the TOC, but does not show the namespace declaration, which was exactly what I wanted.
^{:nextjournal.clerk/visibility {:code :hide :result :hide}}
(ns journal {:nextjournal.clerk/toc true})
# Starting Clojure - JournalI coudn't get the visibility marker to work, but I may be doing something wrong. The following does not show the TOC:
{:nextjournal.clerk/toc true}
# Starting Clojure - Journal
(namespace metadata works perfectly for me, so trying to get a visibility marker working is only out of curiosity)cool, I’ll look into the visibility marker sometime later