spren9er / gfm-pdf Goto Github PK
View Code? Open in Web Editor NEWAtom package for converting GFM (GitHub Flavored Markdown) documents to PDF using wkhtmltopdf
Home Page: http://atom.io/packages/gfm-pdf
License: MIT License
Atom package for converting GFM (GitHub Flavored Markdown) documents to PDF using wkhtmltopdf
Home Page: http://atom.io/packages/gfm-pdf
License: MIT License
I'm a fan of "long page" PDFs, i.e., on such a long paper format that there are no page breaks. My css is nil. Is there a way to generate such a PDF with gfm-pdf
?
Many thanks for a great package!
Just as a note that you may like to add to the documentation for configuring on Windows since the path to the executable can look funny thanks to the space between "Program Files". I had best luck with:
executablePath: "C:\\\"Program Files\"\\wkhtmltopdf\\bin\\wkhtmltopdf"
Again, just a note, doesn't really necessitate a PR.
When compiling markdown in atom, HTML is generated but no PDF (output is set as either PDF or HTML+PDF)
Though when using wkhtmltopdf
(see below) in CLI, it works well.
wkhtmltopdf myfile.md myfile.pdf
Hi!
I have a problem when I tried to print to pdf files with codes, specially when docs form some changes to files.
when I use for example
<?php
echo "Lorem Ipsum, Lorem Ipsum, Lorem Ipsum, Lorem Ipsum, Lorem Ipsum, Lorem Ipsum, Lorem Ipsum, Lorem Ipsum, Lorem Ipsum, Lorem Ipsum, Lorem Ipsum, Lorem Ipsum, ";
?>
In the editor they showme OK the Sowft Wrap, but in the print is something like this
I need the soft wrap to make reports and docs on pdf
The HTML it produces looks great.
What tool/library do you use for converting Github flavored markdown to HTML? Is this the exact same output as Github's output?
At the moment, there is no margin top / bottom when the page break occurs within a paragraph of text.
Probably I could circumvent this with custom CSS but it would be nice if gfm-pdf comes with reasonable default values ;)
I'm using gfm-pdf v0.3.4, and GitHub pages (Jekyll) for page generation.
Having some troubles with anchors I use as ToC, the anchors contains Swedish letters.
Edit: Also colons, semi-colons, etc too
I avoid this problem in my markdown file because I remove the letters from the urls, however gfm-pdf replaces the letters. Breaking the links in the pdf file. I've done some testing and using the PDF+HTML
option in gfm-pdf I came to that conclusion.
Example:
.md:
[Köpa](#kpa)
...
# Köpa
.md - html output (Jekyll):
<a href="#kpa">Köpa</a>
...
<h1 id="kpa">Köpa</h1>
.html - gfm-pdf output:
<a href="#kpa">Köpa</a>
...
<h1 id="k-pa">Köpa</h1>
Is there anything I can make the gfm-pdf output to remove the letters, instead of replacing it with dashes?
If the filename one chooses to convert contains a space in the file name the sh command the package executes throws an error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.