Markdown itself has no mechanism for embedding PDF. However, Markdown accepts raw HTML as input and skips it unchanged. So, the question you want to ask is: how would you embed a PDF in HTML? In other words, what HTML code can I use to let the browser display the PDF file embedded in the HTML page? You would simply include this HTML in your Markdown document.
You can find many suggestions in answering the question: Recommended way to embed PDF in HTML? , For example, this answer provides a good solution with a fallback for older browsers (all merit relates to Suneel Omrey ):
<object data="http://yoursite.com/the.pdf" type="application/pdf" width="700px" height="700px"> <embed src="http://yoursite.com/the.pdf"> <p>This browser does not support PDFs. Please download the PDF to view it: <a href="http://yoursite.com/the.pdf">Download PDF</a>.</p> </embed> </object>
source share