Markdown to PDF

hero

Will take a markdown file as input and then create a PDF file with the markdown formatting.

Usage

Usage of md2pdf:
  -file string
    	Name of the markdown file to read
  -output string
    	Name of the PDF file to be exported  (default: <input-file-name>.pdf)

Example:

$ md2pdf -file=MyFile.md -output=MyFile.pdf

Demo

demo

Parser

A Parser will parse the input markdown file as tokens.

  • Headings (L1 – L6)
  • Paragraph
  • Blockquotes
  • CodeBlock
  • Lists (Ordered and Unordered)
  • Horizontal Rules
  • Tables

Will also consider some inline blocks like:

  • Bold
  • Italic
  • Code
  • Link
  • Images

Markdown Guidelines

GitHub

View Github