DS4PS / cpp-528-spr-2020

Course shell for CPP 528 Foundations of Data Science III for Spring 2020.
http://ds4ps.org/cpp-528-spr-2020/
2 stars 0 forks source link

Adding an image in Markdown #17

Open sunaynagoel opened 4 years ago

sunaynagoel commented 4 years ago

My question is not related to the LABs.

I want to add an image to my R-Markdown (like a meta property) so when I share the link of my html file it picks that image. I know how to add an image in R-Markdown which is displayed in html file. But here I don't want image to appear on the html file. Instead, let's say I share the link of the html file on the social media and I want the link to pick up the image and display it above the actual link.

~Nina

lecy commented 4 years ago

I think you can control this in the <head> section of your HTML page:

https://yourblogworks.com/social-share-image/

https://stackoverflow.com/questions/43329230/r-markdown-add-tag-to-head-of-html-output

sunaynagoel commented 4 years ago

I think you can control this in the <head> section of your HTML page:

https://yourblogworks.com/social-share-image/

https://stackoverflow.com/questions/43329230/r-markdown-add-tag-to-head-of-html-output

Thank you @lecy . I will try this, the instructions are very detailed. I tried something similar last night (with not such detailed instructions) and it did not work.