Bitbucket Markdown File Link Reference

Let's say I have README.md, and I would like to create a link to a file with spaces in its name file with spaces.md. I would like to be able to go to the source code of the file.

/
 -- README.md
 -- File with spaces.md

After checking the item in the browser, I found out what it should be href(I changed it manually, then clicking on it, I went to the page I want to open):

<a href="username/repository/src/c0mm1th4sH/File%20with%20%spaces.md">

Unfortunately, I could not do this. Some of the things I've tried so far are:

[Link](File with spaces.md)
[Link](File%20with%20spaces.md)
[Link](File\ with\ spaces.md)
[Link]("File with spaces.md")

This results in the following HTML in Bitbucket:

<a href="/username/repository/src/c0mm1th4sH/File%2520with%2520spaces.md">
<a href="/username/repository/src/c0mm1th4sH/File%2520with%2520spaces.md">
<a href="/username/repository/src/c0mm1th4sH/File%5C%2520with%5C%2520spaces.md">
<a href="" title="File with spaces.md">

You can play with the repository I created.

+8
source share
4 answers

, : &#32; ,

[Link](File&#32;with&#32;spaces.md)
+6

[Title](/username/repo/Name-file-with-)

!

+1

-

, "Hello World.md"

[link_caption](./Hello-World.md)

0

Markdown ( ) , . ( " " - ):

http://johnmacfarlane.net/babelmark2/?text=%5B1%5D ( +) +OK% 2C% 0A% 52% 5D (% 2520not) +OK% 2C% 0A% 5B3% 5D ( % 22is + % 22) +OK% 2C% 0A% 5B4% 5D (% 22is% 2520not% 22) +OK% 2C% 0A% 5B5% 5D (% 5C + ) +OK.% 0A

, ... :

[1](is not) OK,
[2](is%20not) OK,
[3]("is not") OK,
[4]("is%20not") OK,
[5](is\ not) OK.

, -, # 2, , ( ), , , .

:

0.5.2, MD4C 0.2.7, MD4C () 0.2.7, markdig 0.15.6.0

[1] () OK, 2 OK, 3 OK, 4 OK, [5] (is\not) .

commonmark.js 0.28.1, markdown-it 8.4.2

[1] () , 2 , 3 , 4 , 5 .

Markdown.pl 1.0.1, Python-Markdown 2.6.5

1 , 2 , 3 , 4 , 5 .

Markdown.pl 1.0.2b8

[1] () OK, 2 OK, 3 OK, 4 OK, [5] (is\not) .

() 2,5

1 , 2 , 3 , 4 , 5 .

cheapskate 0.1.0.5, Parsedown 1.6.0

[1] () OK, 2 OK, 3 OK, 4 OK, [5] (is\not) .

2.5

1 , 2 , 3 , 4 , 5 .

0.4.0

[1] () OK, 2 OK, 3 OK, 4 OK, [5] (is\not) .

RedCarpet 3.3.4

1 , 2 , 3 , 4 , 5 .

2.1.8

1 , 2 , 3 , 4 , 5 .

PHP Markdown 1.8.0, PHP Markdown Extra 1.8.0

[1] () OK, 2 OK, 3 OK, 4 OK, [5] (is\not) .

0.7.3.1, ( ) 0.7.3.1

1ot) OK, 2 OK, 3ot ") OK, 4 OK, 5ot) OK.

MultiMarkdown 5.1.0

[1] () , 2 , [3] ("") , 4 , [5] (\) .

1 , 2 , [3] ("") , 4 , 5 .

Cramdown 1.2.0, Mistune 0.8.3

1 OK, 2 OK, 3 OK, 4 OK, 5 OK.

MultiMarkdown 6 6.3.0

1 OK, 2 OK, 3 OK, 4 OK, 5 OK.

s9e \ TextFormatter (Fatdown / PHP)

[1] (no) OK, 2 OK, [3] ("no") OK, 4 OK, [5] (there is \ no) OK.

cebe / markdown 1.2.0, cebe / markdown GFM 1.2.0, cebe / markdown MarkdownExtra 1.2.0

[1] (no) OK, 2 OK, 3 OK, 4 OK, [5] (is \ not) OK.

Gambas 3.8.90

1 OK, 2 OK, OK, OK, 5 OK.

autopsy 1.7.4

[1] (no) OK, 2 OK, 3 OK, 4 OK, [5] (is \ not) OK.

autopsy (flavor: github) 1.7.4

[1] (no) OK, 2 OK, 3 OK, 4 OK, [5] (is \ not) OK.

0
source

Source: https://habr.com/ru/post/1622536/


All Articles