md2pdf

command module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 2 Imported by: 0

README

md2pdf

GitHub issues FOSSA Status License

fancy-gif

About

Parse markdown files and output PDFs that resemble GitHub's markdown rendering.

What's Supported?
  • Paragraphs
  • Blockquotes
  • Codeblocks
    • Syntax highlighting provided by Chroma
  • All kinds of emphasis:
    • Bold
    • Italic
    • Code
    • Strike
    • Links
  • Images
    • jpeg, png, and gif*
      • Only the first frame of a gif is drawn to the pdf 😔
  • Headers
  • Horizontal Rules
  • Links
    • Links on images
    • External Links
  • Tables
What Isn't Supported?

Installation

Building from Source
go get -u github.com/tcd/md2pdf
cd $GOPATH/github.com/tcd/md2pdf
make install # GO111MODULE=on go install

Usage

# will generate markdown-file.pdf in your current directory.
md2pdf path/to/markdown-file.md

License

FOSSA Status

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
lib
render
Package render renders text in the style of GitHub using gofpdf.
Package render renders text in the style of GitHub using gofpdf.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL