[bitbucket server] doesn't support Markdown index

Bill Wang
Contributor
March 19, 2018

With this tool [doctoc](https://github.com/thlorenz/doctoc) I can easily generate `Table of Contents` (indexes) into README.md (Markdown)

It runs fine in Github.

But when I applied the same, bitbucket server can't understand it. There is no action after I clicked the links in table of content. 

Does bitbucket server support markdown indexes?

1 answer

0 votes
Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 19, 2018

are you using 

--bitbucket

 ?

Bill Wang
Contributor
March 22, 2018

Thanks, @Boris Berenberg - Atlas Authority

 

I tried with option "--bitbucket", generated different Markdown README, but no action to click the links in bitbucket server. Seems this option is only for bitbucket cloud. 

 

```

Available modes are:
--bitbucket bitbucket.org

```

Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 26, 2018

So looks like it's not core yet: https://jira.atlassian.com/browse/BSERV-4532

But there are workarounds: https://community.atlassian.com/t5/Bitbucket-questions/Markdown-internal-links-support-in-Bitbucket-Server/qaq-p/595033

My guess is you would need to create a PR for doctoc to support this hack.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events