-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdoc.go
37 lines (24 loc) · 1012 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
Package mdtopdf implements a PDF document generator for markdown documents.
# Introduction
This package depends on two other packages:
* The BlackFriday v2 parser to read the markdown source
* The fpdf packace to generate the PDF
The tests included here are from the BlackFriday package.
See the "testdata" folder.
The tests create PDF files and thus while the tests may complete
without errors, visual inspection of the created PDF is the
only way to determine if the tests *really* pass!
The tests create log files that trace the BlackFriday parser
callbacks. This is a valuable debug tool showing each callback
and data provided in each while the AST is presented.
# Installation
To install the package:
go get github.com/mandolyte/mdtopdf
# Quick start
In the cmd folder is an example using the package. It demonstrates
a number of features. The test PDF was created with this command:
go run convert.go -i test.md -o test.pdf
See README for limitations and known issues
*/
package mdtopdf