Ah, I can explain. The topic you linked has html headings (<h3>, <h4> and so on) and initially the TOC component had its own logic for adding heading anchors. However, since then, core added automatic anchors and recently I removed the custom anchor login in the theme component. However, core’s anchor feature only works for Markdown headings (using ###).
So that’s the OP here has anchors, but the linked guide doesn’t.
We probably should update that guide to use Markdown instead of HTML @JammyDodger.
Nice component, the # links created for the headings are very neat too.
Is there a way to move the icon link as pictured in the screenshot?
Right now it hovers over the left, in between the user icon and heading text (see below)
A suggestion if I may.
By nature, posts with TOC will be long. When the Google crawler sees the page it doesn’t see the TOC nor those nifty links to different parts of the page. Perhaps on the crawler version we can have those links show up for each heading/sub-heading.
I love the idea of automation, almost everytime and everywhere.
I haven’t updated DiscoTOC yet, but if it can take away option to insert TOC from toolbar when TOC comes from category it would be really nice touch. Like cherry top of the cake
Or, do opposite thing what @albert_vu asked — there would be an option insert something like !toc if you understand what I’m meaning.
For ordinary users it could be confusing, though.
I can live with that but TOC is quite unneeded when there is somethng like only one or two headers. Because when there is a TOC a long post must be scrolled to bottom to find out… what is it in discourse-lingo… well, possibility to scroll dates. But that is quite rare edge case I reckon.
Thanks for the great theme component! I use it regularly.
Recently, I have started using the “publish” feature for some of the topics on my forum, and it appears that the TOC stuff simply disappears when you do that. Is there any plan to make the TOC available on published pages?