Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

named anchor not working in markdown inside readme.md on Bitbucket

maxkovalenkov May 10, 2018

I want to put a named anchor inside a title of a Bitbucket README.MD file. Here's my markdown:

## <a name="configure"></a>Configure

This renders as:

<a name="configure"></a>Configure

I want it to not render the <a> tag, just the title. Putting the named anchor outside of the title also doesn't work, by the way: it's rendered as text.

2 answers

0 votes
Malcolm Cook October 2, 2019

@Ana Retamal - I find in bit-bucket on prem that the following works:

Take me to <a href="#pookie">pookie</a>
... 

<a name="pookie">this is pookie</a>

 but not when using id tag instead of name, as in:

Take me to <a href="#pookie">pookie</a>
... 

<a id="pookie">this is pookie</a>

although according to my understanding from reading some discussion  either should be legal.

Is there an issue I can support that would get either to work for Bitbucket on-prem?

Thanks!

Tim Black February 27, 2020

SAme here, I would like to get anchors working in Bitbucket Server.

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 25, 2018

Hi Max, I'm afraid Bitbucket doesn't support that at the moment. We have a feature request for it, and you can find it at Support some or all HTML in Markdown in Bitbucket. Please vote for it, watch it to receive further notifications and add a comment if so you wish :)

Hope that helps!

Ana

Mark September 2, 2021

Named anchors is a pretty basic requirement. Any plans to support this in the near future? We're trying to use them to improve navigation in our Bitbucket wiki.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events