Giter Site home page Giter Site logo

spren9er / gfm-pdf Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 4.0 29 KB

Atom package for converting GFM (GitHub Flavored Markdown) documents to PDF using wkhtmltopdf

Home Page: http://atom.io/packages/gfm-pdf

License: MIT License

JavaScript 24.62% CSS 75.38%

gfm-pdf's People

Contributors

spren9er avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gfm-pdf's Issues

Long page PDF?

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!

Windows executablePath documentation.

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.

PDF not generated on OS X

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

Soft Wrap on large text in code block

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

image

I need the soft wrap to make reports and docs on pdf

Github flavored markdown to HTML

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?

Provide sane default values for page margin

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 ;)

Problem with anchors with unicode letters

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?

Filenames spacing

If the filename one chooses to convert contains a space in the file name the sh command the package executes throws an error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.