Embedding external images in README.md (BB-6489)

Issue #5159 resolved
Jens Grassel
created an issue

If I embedd an image in my README.md (for example my TeamCity build status icon) the image is not rendered, only a placeholder appears.

The code used in the README.md:

![Build Status](https://teamcity.wegtam.com/TeamCity/app/rest/builds/buildType:%28id:bt5%29/statusIcon)

Maybe it is of interest that the README.md is located in a private repository.

Comments (11)

  1. Dylan Etkin

    Hi Jens,

    I believe this markdown works:

    Build Status

    It looks like the bug is with the specific URL you are using. We will look into it but you should have a work-around for now.



  2. Jens Grassel reporter

    The workaround does not work. ;-)

    I guess it is really related to the url, because it contains "(" and ")" which I encoded to prevent markdown from breaking but to no avail it seems. :-|

  3. Steve Loveless

    Check out https://bitbucket.org/tutorials/markdowndemo. BitBucket seemingly doesn't support this; it uses safe mode in markdown which really disables anything dynamic. I came across this post looking for a solution. :shit:

    Also, FWIW, I put backslashes before the parens in the URL, which didn't barf, but I also didn't get the image either.

    Also, I tried just getting the page to display TeamCity's text status (use status instead of statusIcon) and it doesn't like that either.

  4. blueror815

    Dear Jens. I have some problems for embedding screenshot to bitbucket repository. My folder structure is like this. root--

    • readme.md
    • screenshot >>- screenshot.png

    And I have added file to readme.md below line. "Alt text"

    But the image does not be rendered. How can I solve this problem? Please help me.


  5. Log in to comment