ubsuny / CP1-24-HW3

Homework 3 template for CP1-24
1 stars 16 forks source link

Image upload #25

Closed Priyanka-43 closed 1 week ago

Priyanka-43 commented 1 week ago

I have made some picture in power point with the help of snipping tool cut and copied that picture. But i am unable to post in my documentation. Can anyone help?

avgagliardo commented 1 week ago

you mean in your markdown file?

avgagliardo commented 1 week ago

I have made some picture in power point with the help of snipping tool cut and copied that picture. But i am unable to post in my documentation. Can anyone help?

Here are the docs for inserting images into markdown

So for example if you have a screenshot, instead of uploading the file directly to github or using it in the document you would upload to a host, acquire that media link and then use markdown to associate the image.

So the block:

![octofriend](https://cameronmcefee.com/img/work/the-octocat/original.jpg "octofriend")

Will produce:

octofriend

Priyanka-43 commented 1 week ago

Yes, in my markdown file.

avgagliardo commented 1 week ago

Let me know if its still giving you trouble, maybe I can be more specific.

Priyanka-43 commented 1 week ago

Screenshot 2024-10-13 164423 It's not working. This is the link of image.

Priyanka-43 commented 1 week ago

Always it is working here only.

avgagliardo commented 1 week ago

Can you link me to the file where its not working?

Priyanka-43 commented 1 week ago

Yeah sure. I am new to this Github. Can you please tell me how to do that?

avgagliardo commented 1 week ago

I think I might see the issue.

So first thing is that any files you can navigate to in your repositories (if they are public), you can just copy and paste the url directly from that page to link people to that file. But in this case, I think I found it already.

Is this the file that is giving you issues?

First thing I would do is remove the whitespaces from the filename (replace with underscores or camelcasing) to avoid filename issues.

Also, make sure the filename ends with .md otherwise it will not be recognized as a markdown file and will be displayed as cleartext rather than rendered markdown.

If that doesn't help let me know!

Priyanka-43 commented 1 week ago

Yes, this is the file. Sure i will make changes and let you know.

avgagliardo commented 1 week ago

Always it is working here only.

Also it might be worth noting that github checks for properly formed markdown inside of these comments and automatically parses/renders it, so you don't need to worry about things like file extensions if you aren't placing it into a dedicated markdown file. That's probably why the link is working inside of issues conversations for you.

Priyanka-43 commented 1 week ago

Hey, it worked. Thankyou so much for your help.

avgagliardo commented 1 week ago

Awesome, anytime!

Priyanka-43 commented 1 week ago

I am closing this issue. Thankyou so much again.