How to reference other .md files in


I have read the docs but can't figure out how to reference other .md files in the  I have some .md files in the root and subdirectories (folders) that I want to reference in the for people to read.

I am probably doing something very simple that is wrong.  Please point me in the right direction.



1 answer

0 votes
Boris Berenberg Community Champion Dec 22, 2014

Are you trying to create links to those files, and then have Bitbucket render those files for you? If so, this syntax should work to create the link: Though I am not sure how BB will handle it.

Or are you trying to include them to essentially build a out of component files?


Thanks for your response. It is the former over the later.  I followed the syntax on the daring fireball website.  But whatever link I use to the subdocs or secondary docs (whatever you want to call them), I get nasty 404 errors saying it can't find my docs (.md files).

any advice on the structure of the URL links would be great.



Boris Berenberg Community Champion Dec 23, 2014 I don't think that Markdown itself has support for including other files. My recommendation would be to have the file built using a pre-commit script. There is no limitation on links within Markdown, and all Bitbucket does is render it. Your links should just be the links you see in your browser's url bar when you view the .md file in your repo as a user which has access to it. You can use to test your syntax on the fly.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,950 views 7 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you