How to add image to readme file in Stash
I am using Stash (which has Git) for my project
I am trying to add some images to my Readme.md file as
but its not working. when i view the readme, all i see is the plain text
Note that stash might be rendering markdowns differently and thats why the conventional solutions to github markdowns might not be applicable. still if somebody know an alternate way of doing this, please let me know.
ok, so here is part of the problem
i had the text for the image as part of the text in an ordered list. as you might know, the lists follow an indentation pattern. when i took the text for the image out of the indentation, and added ?raw at then end of the url, the image showed up. Follow up: can i use something similar to the html img tag in order to resize my image ? also is it necessary for me to de-indent the text for referencing the image ? i still can’t escape the quotes
found the solution for escaping special characters
i had to replace the special characters with their corresponding entity number as per
2 Solutions collect form web for “How to add image to readme file in Stash”
You will need to add
?raw to the end of the URL to the image, so Stash will serve up the image, instead of showing you the file image history.
The Stash/BitBucket documentation for images https://confluence.atlassian.com/bitbucketserver/markdown-syntax-guide-776639995.html#Markdownsyntaxguide-Images provides markdown syntax to just link images “first class”. Assuming my README.md is at the root of my project,
…works like a champ on a directory structure like
tcc-rkuhar:shaggy robert.kuhar$ tree --charset=ascii . |-- README.md |-- doc | |-- fields_seq_diagram.png | `-- fields_seq_diagram.txt |-- project.clj