An open API service indexing awesome lists of open source software.

https://github.com/be-hase/markdown-to-pdf

Convert markdown-file to pdf-file
https://github.com/be-hase/markdown-to-pdf

Last synced: 3 months ago
JSON representation

Convert markdown-file to pdf-file

Awesome Lists containing this project

README

        

By using the grunt-markdown-pdf(https://www.npmjs.org/package/grunt-markdown-pdf), I was able to convert markdown-file to PDF-file easily. (like Github's design)

## Install

### 1, Install node.js

http://nodejs.org

### 2, Git clone the repository.

```
// cd
git clone [email protected]:be-hase/markdown-to-pdf.git
```

### 3, Run `npm install` in the directory you cloned

```
npm install
```

Now complete.

## How to make a PDF

```
grunt
```

OK if you run with.

## By monitoring the file, to make the PDF automatically when the file is the save

```
grunt watch
```

If you run this command, to start the file monitoring.

### When you want to include a image in the PDF

Please place the image on the assets / images.
And then, enter in the notation of markdown,

```
![hoge image]({{assets}}/images/hoge.png)
```

(Because absolute path of the directory is different from each user, before converting to markdown to HTML, replace "{{assets}}" with the appropriate absolute path.)