-
Notifications
You must be signed in to change notification settings - Fork 5
/
markdown2pdfrc.example.toml
180 lines (167 loc) · 4 KB
/
markdown2pdfrc.example.toml
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
# Configuration file for markdown-to-pdf styling
#
# This file defines the styling and formatting options for different Markdown elements
# when converting to PDF. Each section configures a specific element type with properties
# like font size, colors, spacing, and text decorations.
#
# Common properties for all style sections:
# - size: Font size in points
# - textcolor: RGB text color values (0-255)
# - backgroundcolor: RGB background color values (0-255)
# - afterspacing: Vertical spacing after element in points
# - alignment: Text alignment (left|center|right|justify)
# - fontfamily: Font family name
# - bold: Enable bold text
# - italic: Enable italic text
# - underline: Enable underlined text
# - strikethrough: Enable strikethrough text
# Document margins in points
[margin]
top = 8.0
right = 8.0
bottom = 8.0
left = 8.0
# Level 1 heading style (# Heading)
[heading.1]
size = 14
textcolor = { r = 0, g = 0, b = 0 }
afterspacing = 0.5
alignment = "center"
fontfamily = "roboto"
bold = true
italic = false
underline = false
strikethrough = false
backgroundcolor = { r = 255, g = 255, b = 255 }
# Level 2 heading style (## Heading)
[heading.2]
size = 12
textcolor = { r = 0, g = 0, b = 0 }
afterspacing = 0.5
alignment = "left"
fontfamily = "roboto"
bold = true
italic = false
underline = false
strikethrough = false
backgroundcolor = { r = 255, g = 255, b = 255 }
# Level 3 heading style (### Heading)
[heading.3]
size = 10
textcolor = { r = 0, g = 0, b = 0 }
afterspacing = 0.5
alignment = "left"
fontfamily = "roboto"
bold = true
italic = false
underline = false
strikethrough = false
backgroundcolor = { r = 255, g = 255, b = 255 }
# Emphasis style (*italic* or _italic_)
[emphasis]
size = 8
textcolor = { r = 0, g = 0, b = 0 }
afterspacing = 0.0
alignment = "left"
fontfamily = "roboto"
bold = false
italic = true
underline = false
strikethrough = false
backgroundcolor = { r = 255, g = 255, b = 255 }
# Strong emphasis style (**bold** or __bold__)
[strong_emphasis]
size = 8
textcolor = { r = 0, g = 0, b = 0 }
afterspacing = 0.0
alignment = "left"
fontfamily = "roboto"
bold = true
italic = false
underline = false
strikethrough = false
backgroundcolor = { r = 255, g = 255, b = 255 }
# Code block and inline code style (`code`)
[code]
size = 8
textcolor = { r = 128, g = 128, b = 128 }
afterspacing = 0.0
alignment = "left"
fontfamily = "roboto"
bold = false
italic = false
underline = false
strikethrough = false
backgroundcolor = { r = 230, g = 230, b = 230 }
# Block quote style (> quote)
[block_quote]
size = 8
textcolor = { r = 128, g = 128, b = 128 }
afterspacing = 0.0
alignment = "left"
fontfamily = "roboto"
bold = false
italic = true
underline = false
strikethrough = false
backgroundcolor = { r = 245, g = 245, b = 245 }
# List item style (- item or * item)
[list_item]
size = 8
textcolor = { r = 0, g = 0, b = 0 }
afterspacing = 0.5
alignment = "left"
fontfamily = "roboto"
bold = false
italic = false
underline = false
strikethrough = false
backgroundcolor = { r = 255, g = 255, b = 255 }
# Link style ([text](url))
[link]
size = 8
textcolor = { r = 128, g = 128, b = 128 }
afterspacing = 0.0
alignment = "left"
fontfamily = "roboto"
bold = false
italic = false
underline = true
strikethrough = false
backgroundcolor = { r = 255, g = 255, b = 255 }
# Image caption style (![alt](url))
[image]
size = 8
textcolor = { r = 0, g = 0, b = 0 }
afterspacing = 0.0
alignment = "center"
fontfamily = "roboto"
bold = false
italic = false
underline = false
strikethrough = false
backgroundcolor = { r = 255, g = 255, b = 255 }
# Regular paragraph text style
[text]
size = 8
textcolor = { r = 0, g = 0, b = 0 }
afterspacing = 0.0
alignment = "left"
fontfamily = "roboto"
bold = false
italic = false
underline = false
strikethrough = false
backgroundcolor = { r = 255, g = 255, b = 255 }
# Horizontal rule style (---)
[horizontal_rule]
size = 8
textcolor = { r = 0, g = 0, b = 0 }
afterspacing = 0.5
alignment = "left"
fontfamily = "roboto"
bold = false
italic = false
underline = false
strikethrough = false
backgroundcolor = { r = 255, g = 255, b = 255 }