Table of contents marco can't not jump to markdown headers

杨坤 December 21, 2018

I write a page with markown macro, then I use the "Tables of Contents" macro, because I want to display the markdown's toc.When I view the page, toc is generated, but I click the item, it can't jump to the markdown headers.Following figure display this problem:

TIM截图20181222092723.jpg

 

 

1 answer

0 votes
Patrick Forssell December 22, 2018

Hello,

If you click the Item2 and look at the url, does it appear in the url?
For example like: http://confluence/display/SPACEKEY/ItemTest#ItemTest-Item2

Also if you don't have enough text or content that there is a scroll bar on that page obviously your screen isn't going to move.

-Patrick

杨坤 January 2, 2019

Sorry, so late to reply.

My page name is "markdown-test", the Item2 url is: http://localhost:8090/display/SPC/markdown-test#, it's not http://localhost:8090/display/SPC/markdown-test#Item2, others item url are all http://localhost:8090/display/SPC/markdown-test#, as following screenshots:

markdown-item.jpg

My detail operation as following:

1. First insert into "Table Of Contents" macro.

2. Second insert into "Markdown Macro for Confluence" macro, the content is :

# Item1
This is the item1 content.

## Item1.1
This is the item1.1 content.

## Item1.2
This is the item1.2 content.

# Item2
This is the item2 content.

## Item2.1
This is the item2.1 content.

## Item2.2
This is the item2.2 content.

# Item3
This is the item2 content.

## Item3.1
This is the item3.1 content.

## Item3.2
This is the item3.2 content. 

The screenshots is:

markdown-test.jpg

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events