1. Bitbucket Website
  2. Public Issue Tracker
  3. master

Issues

Issue #5159 resolved

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

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 (9)

  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.

    Cheers,

    Dylan

  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. Log in to comment