I have multiple headings I'd like to now show up in the table of contents.
I can get it to not show one of them, but I don't know how to add multiple.
I saw somewhere online to put this: (|)
but should there be a space between the heading title and that symbol or after or not at all?
For example I have two headings called "purpose" and "Jump to" - Purpose excluded is working but how do I add "jump to" to also be excluded?
purpose(|)jump to ?
Thanks :)
Hello @Addie Hutchins yes, in the macro settings, there is exclude headings. The docs say:
Filter headings to exclude according to specific criteria. You can use wildcard characters.
If the headings you want to exclude areOverviewandSummary, enter
Overview|Summary
in this field.
Full documentation is here https://support.atlassian.com/confluence-cloud/docs/insert-the-table-of-contents-macro/
For the example provided in the documentation, any headline with the word "Overview" in it is excluded. Headings with the text "Overview", "Overview of Work", "Executive Overview", "My Overview is the Best Overview" are all excluded.
The correct regex to use to match only "Overview" or "Summary" headings is:
^Overview$|^Summary$
^ is beginning of string. $ is end of string.
Note: TOC does not use any newline characters
Note: The Preview pane is not accurate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Preview Pane is displaying the accurate things for me once I got the format right :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can write RegEx in a heartbeat, if I know that I need to write RegEx! I think the in-app hint is very misleading...
> Enter one or more expressions, separated by commas, to filter out certain headings
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No Space is best practice even though space works!!
and case sensitive!!
Thanks,
Pramodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.