Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add png in markdown file? #4

Open
babahui opened this issue Mar 21, 2017 · 1 comment
Open

How to add png in markdown file? #4

babahui opened this issue Mar 21, 2017 · 1 comment

Comments

@babahui
Copy link

babahui commented Mar 21, 2017

Hi. I use a link in markdown file, as "![png][/assets/photoname.png]", and save the png file in /assets. But it doesn't work on website. Is there something wrong?
I just found it works when I change the link to "![png][https://username.github.com/repo/assets/name.png]", and can I just use relative path to do this work?

@ansiblejunky
Copy link

It works if you use parenthesis for the filename/path and not brackets. See example below. This is the normal syntax.

![png](/assets/photoname.png)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants