Markdown: Links to markdown files in nested directories

gaussblurinc picture gaussblurinc · Jan 15, 2014 · Viewed 9.6k times · Source

I created a Bitbucket wiki.

And I find an issue: how to make links to pages in nested folders?

I have a structure:

  • one.md
  • two.md
  • dir1/
    • three.md
  • dir2/
    • four.md

If I want to add on home wiki pages one or two, I will use

[[one]]  
[[two]]

But if I write something similar for other pages...

[[dir1/three]]  
[[dir2/four]]

nothing seems to be ok.

What is the correct symbol that separate folders in path to file?

What is the correct way for nested directories in markdown wiki?

Answer

Chris picture Chris · Jan 15, 2014

Bitbucket doesn't recognize links of this type using the [[ ... ]] syntax. However, the full link syntax [link text](path/to/target) seems to work fine:

[three](dir1/three)
[four](dir2/four)