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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

627 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot