Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PDF to Github Flavored Markdown

I have a project description in PDF and I will be quite happy if I can somehow manage to preview it in github website rather than clicking "View Raw" and downloading it.

I thought there could be a converter from pdf to github flavored markdown yet found none.

To state again, my input is a pdf file and my desired output is the preview the contents of the pdf in github website without downloading it.

like image 674
Seçkin Savaşçı Avatar asked Oct 14 '13 14:10

Seçkin Savaşçı


People also ask

How do I save a GitHub Markdown as a PDF?

Just focus the window containing your markdown file and use the convert command ( Packages > Markdown to PDF > Convert ) or with the following shortcut ctrl-alt-e . The output PDF will be styled similar to the markdown on github.com .

What GitHub flavored markdown is and how it is used?

GitHub Flavored Markdown, often shortened as GFM, is the dialect of Markdown that is currently supported for user content on GitHub.com and GitHub Enterprise. This formal specification, based on the CommonMark Spec, defines the syntax and semantics of this dialect. GFM is a strict superset of CommonMark.

How do I convert Markdown to PDF in Pandoc?

Generating PDF from Markdown with Pandoc There are actually two steps involved in converting a Markdown file to a PDF file: The Markdown source file is converted to a LaTeX source file. Pandoc invokes the pdflatex or xelatex or other TeX command and converts the . tex source file to a PDF file.


1 Answers

Update March 2015: "PDF Viewing"!

Simply browse to a PDF document and we'll render it in your browser like any other file.
From presentations to papers, we've got you covered.
Many thanks to Mozilla and every contributor to PDF.js.

https://cloud.githubusercontent.com/assets/2546/6703741/cbb216c0-ccfc-11e4-9c15-ecb6a33e8ddb.gif


Original answer (October 2014)

This is simply not (yet?) supported in GitHub.

The best you can do is a greasemonkey extension which would allow you to call a pdf viewer, like the recent pdf.js (a Portable Document Format (PDF) viewer that is built with HTML5.), allowing you to view a pdf entirely online, without any pdf plugin installed.
See that example on jsbin.

like image 138
VonC Avatar answered Sep 30 '22 04:09

VonC