https://github.com/khuedoan/md2pdf
Simple Markdown to PDF converter written in Go
https://github.com/khuedoan/md2pdf
Last synced: 6 months ago
JSON representation
Simple Markdown to PDF converter written in Go
- Host: GitHub
- URL: https://github.com/khuedoan/md2pdf
- Owner: khuedoan
- Created: 2019-12-04T10:51:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-02T06:32:47.000Z (almost 5 years ago)
- Last Synced: 2025-03-29T01:34:16.865Z (7 months ago)
- Language: CSS
- Homepage:
- Size: 109 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Markdown to PDF
Simple and easy to use Markdown to PDF converter
## Getting Started
### Prerequisites
- `wkhtmltopdf`
### Installation
Download the binary and copy to `$PATH`, for example:
```sh
$ curl -OL https://github.com/khuedoan/md2pdf/releases/download/v1.0/md2pdf
$ chmod +x md2pdf
$ sudo mv md2pdf /usr/local/bin/
```### Usage
```sh
$ md2pdf input.md output.pdf
``````## Build from source
### Run directly
```sh
go generate
go run . input.md output.pdf
```### Compile
```sh
go generate
go build
```## Acknowledgments
- [GitHub Markdown CSS by iamcco](https://github.com/iamcco/markdown-preview.nvim/blob/master/app/_static/markdown.css)