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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# markdown2pdf reference config.
#
# Point at this file (or any copy of it) with `-c path/to/config.toml`.
#
# Every field here is optional. Set `theme = "github"` (or any other
# bundled preset) to inherit a known-good baseline, then override only
# the fields you care about. Without `theme`, the bundled `default`
# preset is used.
#
# Bundled themes: default | github | academic | minimal | compact | modern
# Inspect the effective config for any combination with:
# markdown2pdf --theme github --print-effective-config
= "default"
# Page setup.
[]
# Named size, or { width_mm = .., height_mm = .. } for custom paper.
= "A4" # A4 | Letter | Legal | A3 | A5
= "portrait" # portrait | landscape
= { = 22.6, = 22.6, = 22.6, = 22.6 } # mm
= 1
= 6.0
# Defaults cascade into every block that leaves a field unset. Useful
# when you want one consistent body font across the whole doc.
[]
= "Helvetica"
= 11.0
= "normal" # normal | bold | <100..=900>
= "normal" # normal | italic
= "#1B1F23" # #RRGGBB hex, #RGB short hex, { r, g, b }, or [r, g, b]
= 1.5 # multiplier of font_size_pt
= "left" # left | center | right | justify
= 0.0 # scalar (all sides), [v, h], [t, r, b, l], or { top, right, bottom, left }
= 0.0
= 0.0
= 0.0
[]
= 4.0
# Heading levels are fully independent. Drop any subsection to inherit
# from `[defaults]` (and the active theme).
[]
= 22.0
= "bold"
= "left"
= 8.0
= 4.0
[]
= 17.0
= "bold"
= 6.0
= 3.0
[]
= 14.0
= "bold"
[]
= 12.0
= "bold"
[]
= 11.0
= "bold"
[]
= 10.5
= "bold"
= "#57606A"
# Fenced code blocks (```).
[]
= "Courier"
= "#F6F8FA"
= "#1F2328"
= { = 8.0, = 10.0, = 8.0, = 10.0 }
= 6.0
= 6.0
# [code_block.border]
# all = { width_pt = 0.5, color = "#E1E4E8", style = "solid" }
# Inline code spans (`...`).
[]
= "Courier"
= "#EFF1F3"
= "#1F2328"
# Block quotes (>).
[]
= "italic"
= "#57606A"
= 17.0
= { = 2.0, = 6.0, = 2.0, = 8.0 }
= 4.0
= 4.0
[]
= { = 3.0, = "#D0D7DE", = "solid" }
# Lists (ordered / unordered / task).
[]
[]
= 0.5
= 17.0
= 0.5
= 2.0
[]
= "•"
[]
= "1."
[]
[]
= 2.0
= { = 3.0, = 4.0, = 3.0, = 4.0 }
= 4.0
= 4.0
# alternating_row_background = "#FAFBFC"
[]
= "bold"
[]
[]
= 0.5
= "#D0D7DE"
= "solid" # solid | dashed | dotted
[]
= 100.0
= "center" # left | center | right
= 4.0
= 4.0
# [image.caption]
# font_size_pt = 9.0
# font_style = "italic"
# text_align = "center"
[]
= "#0969DA"
= false
# Inline highlight (==text==).
[]
= "#FFF59D"
# LaTeX math ($...$ inline, $$...$$ display). Display blocks honor
# these; inline math always tracks the surrounding text size. Math is
# typeset by the built-in TeX engine and drawn as vector outlines.
[]
= "center" # center | left | right
= 1.08 # display size as a multiple of the body size
= "#1A1A1A" # defaults to the paragraph text color
= 6.0
= 6.0
# Horizontal rules (---).
[]
= "#D0D7DE"
= 0.5
= "solid" # solid | dashed | dotted
= 100.0
= 6.0
= 6.0
# Document metadata written to the PDF Info dict.
[]
# title = "My Document"
# author = "Author Name"
# subject = "Subject line"
# keywords = ["one", "two"]
= "markdown2pdf"
# BCP-47 language tag; emitted as the PDF /Lang catalog entry for
# screen readers. Omitted entirely when unset.
# language = "en-US"
# Headers and footers. Three slots (left / center / right) with
# template variables: {page}, {total_pages}, {title}, {date}, {author}.
# [header]
# left = "{title}"
# right = "{page} / {total_pages}"
# show_on_first_page = false
#
# [footer]
# center = "{page}"
# Title page (renders before the body when `title` is set).
# [title_page]
# title = "Document Title"
# subtitle = "Optional subtitle"
# author = "Author Name"
# date = "2026-05-14"
# cover_image_path = "cover.png"
# Auto-generated table of contents.
# [toc]
# enabled = false
# title = "Contents"
# max_depth = 3