{"repo":"solworktech/md2pdf","free":true,"listed":false,"github":"https://github.com/solworktech/md2pdf","clone":"git clone https://github.com/solworktech/md2pdf.git","description":"A CLI utility that generates PDFs from Markdown. Features: syntax highlighting (for code blocks), dark, light and custom themes, TOC autogeneration, tables, pagination control (using horizontal lines - especially useful for presentations), page Footer (consisting of author, title and page number), support of non-Latin charsets and multiple fonts","language":"Go","stars":232,"topics":["convert","footer","markdown","pagination","pdf-generation","syntax-highlighting","themes","md2pdf","mdtopdf","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"[![CI][badge-build]][build] [![GoDoc][go-docs-badge]][go-docs] [![GoReportCard][go-report-card-badge]][go-report-card] [![License][badge-license]][license] Markdown to PDF A CLI utility which, as the name implies, generates a PDF from Markdown. This package depends on two other packages: - gomarkdown parser to read the markdown source - fpdf to generate the PDF Features - Syntax highlighting (for code blocks) - Dark and light themes - Customised themes (by passing a JSON file to md2pdf ) - Auto Generation of Table of Contents - Support of non-Latin charsets and multiple fonts - Pagination control (using horizontal lines - especially useful for presentations) - Page Footer (consisting of author, title and page number) Supported Markdown elements - Emphasised and strong text - Headings 1-6 - Ordered and unordered lists - Nested lists - Images - Tables - Links - Code blocks and backticked text Installation You can obtain the pre-built md2pdf binary for your OS and arch here; you can also install the md2pdf binary directly onto your $GOBIN dir with: md2pdf is also available via Homebrew: Syntax highlighting md2pdf supports colourised output via the gohighlight module. For examples, see testdata/syntax highlighting.md and testdata/syntax highlighting.pdf Custom themes md2pdf supports both light and dark themes out of the box (use --theme light or --theme dark - no config required). However, if you wish to customise the font faces, sizes and colours, you can use the JSONs in custom","default_branch":null,"files":null,"tree":[],"storefront":"/r/solworktech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/solworktech/md2pdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}