GithubHelp home page GithubHelp logo

seanlth / gfm-pdf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spren9er/gfm-pdf

0.0 3.0 0.0 20 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 25.35% CSS 74.65%

gfm-pdf's Introduction

gfm-pdf

Export GFM (GitHub Flavored Markdown) documents to PDF using wkhtmltopdf. The package is intended to generate a high-quality and professional GitHub flavored PDF (or HTML page), whose content is copyable and where links are clickable, i.e. where pages are not only images.

Requirements

In order to use gfm-pdf you need to install wkhtmltopdf to your system. For further information look at wkhtmltopdf.org.

Plugin Installation

$ apm install gfm-pdf

Settings

You configure gfm-pdf by editing ~/.atom/config.cson

'gfm-pdf':
  'executablePath': '/usr/local/bin/wkhtmltopdf'
  'styleFontSize': '12px'
  'styleWidth': '520px'
  'type': 'PDF'

You need to provide the path to your wkhtmltopdf binary under executablePath as above. The available types of output are PDF, PDF+HTML or HTML.

Note: For further CSS modifications you can edit your stylesheet ~/.atom/styles.less; the corresponding wrapper class is called gfm-pdf, e.g.

.gfm-pdf h1 {
  color: red;
}

Usage

Open a markdown document and convert it using the gfm-pdf:convert command. The generated document(s) will be saved in the same directory as the input file.

gfm-pdf's People

Contributors

seanlth avatar spren9er avatar

Watchers

 avatar  avatar  avatar

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.