We’re trying to set up a topic as a sort of FAQ/forum usage guide, and in doing so we’d like to have a number of longer posts, each with a number of headings, and compile a table of contents in the first post of the topic so users can easily jump around.
This is proving deceptively difficult to make work as intended and digging around Meta isn’t really helping, unfortunately. We’re aware of the plugin-thingy (auto-ToC or whatever it’s called), but we just want this for one singular topic and so don’t really want to deal with that.
We’ve tried using the link icons next to an auto-generated markdown header via the # symbols, but that isn’t working - we’re not sure if this is just because of the colors we’re using for the headers, or something else entirely, but in any case this works for some but not all of our headers.
Trying to use HTML tags with manual ids for our headers had no success either - this just wasn’t jumping to the links at all. We saw somewhere on Meta that the id information was being stripped out by Discourse and stopped pursing this approach.
We then saw a clever idea using empty links placed right above our headers that you could just jump to, and although this at first seemed to work after we get a few posts down it also stops jumping to the correct place in the linked post.
Does anybody know why headers seem to be so broken, and how we can make them work across multiple posts within a single topic? I’m classifying this as a bug, because the behavior seems incredibly undesirable, but I’d be okay jumping through some hoops on our end to get this working if anybody knows how.