You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
This question is in reference to Atlassian Documentation: Table of Contents Macro
Every time I use this macro, it shows an empty/blank entry as the first item of the list.
I don't know why this appears!
The first line in the article, the one with the TOC macro on it, was set to Heading 2.
Changing it to Paragraph got rid of the blank bullet point item within the rendered TOC.
Actually, the correct answer is rather simple:
Set the level to 1 instead of 0, this level 0 does not exist and is AFAIK a bug that has been reported but is still unresolved.
Thus, no bothering about spaces before or any strange stuff, just set the header level to 1.
You can see that BTW in the preview, thus just play around with that, nothing will break :)
I had this same problem, even after making sure I wasn't typing anything extra and after already setting the TOC line of the document to be "Paragraph" style. What finally worked for me was the following. Go to the "Edit 'Table of Contents' Macro" pop-up window (this pops up when you insert a new TOC, or when you double-click the icon for one you've already added), scroll down to the "Exclude Headings" field and enter the two characters w* here. This essentially tells Confluence to leave out any bullet points that appear blank.
I can confirm this! This is exactly what I needed. None of the changes to styles helped, and I verified had no extra lines or characters interfering. The only thing that helped the blank bullet in the ToC was to set my H1 to Paragraph... but I wanted the H1 in the ToC! Gah!
So I tried this one and lo-and-behold!!
ToC BEFORE ADDING THE EXCLUSION FILTER
ToC AFTER ADDING THE EXCLUSION FILTER