markdown_convert 1.2.42__tar.gz → 1.2.43__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: markdown_convert
3
- Version: 1.2.42
3
+ Version: 1.2.43
4
4
  Summary: Convert Markdown files to PDF from your command line.
5
5
  Project-URL: homepage, https://github.com/Julynx/markdown_convert
6
6
  Author-email: Julio Cabria <juliocabria@tutanota.com>
@@ -10,6 +10,14 @@
10
10
  --left-margin: 1.5em;
11
11
  --left-margin-small: 1em;
12
12
  --left-margin-big: 2em;
13
+
14
+ /* -- Colors -- */
15
+ --color-text: #333; /* Main text color */
16
+ --color-text-light: #666; /* Tables, blockquotes, footers */
17
+ --color-text-background: #eee; /* Code blocks, table headers */
18
+ --color-border: #999; /* Image borders, rules */
19
+ --color-border-light: #ccc; /* Table borders, blockquotes */
20
+ --color-links: #09f; /* Hyperlinks */
13
21
  }
14
22
 
15
23
  /* Document */
@@ -24,7 +32,7 @@ body {
24
32
  font-family:
25
33
  "Segoe UI", "Ubuntu", "DejaVu Sans", "Liberation Sans", "Arial",
26
34
  "sans-serif";
27
- color: #333;
35
+ color: var(--color-text);
28
36
  }
29
37
 
30
38
  /* Headers and paragraphs */
@@ -51,18 +59,18 @@ h2,
51
59
  h3,
52
60
  h4,
53
61
  h5 {
54
- color: #333;
62
+ color: var(--color-text);
55
63
  font-weight: 600;
56
64
  }
57
65
 
58
66
  h1 {
59
67
  font-size: 2.2rem;
60
- border-bottom: 0.5px solid #999;
68
+ border-bottom: 0.5px solid var(--color-border);
61
69
  }
62
70
 
63
71
  h2 {
64
72
  font-size: 1.8rem;
65
- border-bottom: 0.5px solid #999;
73
+ border-bottom: 0.5px solid var(--color-border);
66
74
  }
67
75
 
68
76
  h3 {
@@ -83,7 +91,7 @@ p {
83
91
 
84
92
  /* Links */
85
93
  a {
86
- color: #09f;
94
+ color: var(--color-links);
87
95
  margin: 0;
88
96
  vertical-align: baseline;
89
97
  }
@@ -126,7 +134,7 @@ code {
126
134
  "JetBrains Mono", "Consolas", "Ubuntu Mono", "DejaVu Sans Mono",
127
135
  "Liberation Mono", "Courier New", monospace;
128
136
  font-size: 1rem;
129
- background-color: #eee;
137
+ background-color: var(--color-text-background);
130
138
  padding-left: 0.4em;
131
139
  padding-right: 0.4em;
132
140
  display: inline-block;
@@ -147,9 +155,9 @@ blockquote {
147
155
  margin-top: 0;
148
156
  margin-bottom: var(--bottom-margin);
149
157
  margin-left: var(--left-margin);
150
- border-left: 4px solid #ccc;
158
+ border-left: 4px solid var(--color-border-light);
151
159
  padding-left: 0.5em;
152
- color: #666;
160
+ color: var(--color-text-light);
153
161
  }
154
162
 
155
163
  blockquote > blockquote {
@@ -166,6 +174,16 @@ img {
166
174
  margin: 1em auto;
167
175
  }
168
176
 
177
+ /* Image footers */
178
+ p > img + em {
179
+ text-align: center;
180
+ font-size: 1rem;
181
+ font-style: italic;
182
+ color: var(--color-text-light);
183
+ display: block;
184
+ margin: 1em auto;
185
+ }
186
+
169
187
  /* Image alt text attributes */
170
188
  img[alt*="::tiny::"],
171
189
  img[alt*="::smallest::"] {
@@ -201,14 +219,29 @@ p:has(> img[alt*="::inline::"]) {
201
219
  margin-right: 1em;
202
220
  }
203
221
 
204
- /* Image footers */
205
- p > img + em {
206
- text-align: center;
207
- font-size: 1rem;
208
- font-style: italic;
209
- color: #666;
210
- display: block;
211
- margin: 1em auto;
222
+ img[alt*="::shadow::"] {
223
+ box-shadow: rgba(100, 100, 100, 0.4) 0px 2px 8px 0px;
224
+ }
225
+
226
+ img[alt*="::border::"] {
227
+ border: 2px solid var(--color-border);
228
+ }
229
+
230
+ img[alt*="::invert::"] {
231
+ filter: invert(100%);
232
+ }
233
+
234
+ img[alt*="::grayscale::"],
235
+ img[alt*="::greyscale::"] {
236
+ filter: grayscale(100%);
237
+ }
238
+
239
+ img[alt*="::circle::"] {
240
+ border-radius: 50%;
241
+ }
242
+
243
+ img[alt*="::rounded::"] {
244
+ border-radius: 1em;
212
245
  }
213
246
 
214
247
  /* Tables */
@@ -224,17 +257,17 @@ table {
224
257
  }
225
258
 
226
259
  thead {
227
- background-color: #eee;
260
+ background-color: var(--color-text-background);
228
261
  }
229
262
 
230
263
  tbody {
231
- color: #666;
264
+ color: var(--color-text-light);
232
265
  }
233
266
 
234
267
  th,
235
268
  td {
236
269
  padding: 0.5em 0.75em;
237
- border: 1px solid #ccc;
270
+ border: 1px solid var(--color-border-light);
238
271
  overflow-wrap: break-word;
239
272
  vertical-align: top;
240
273
  }
@@ -253,7 +286,7 @@ td {
253
286
  /* Horizontal rulers */
254
287
  hr {
255
288
  height: 1px;
256
- background-color: #999;
289
+ background-color: var(--color-border);
257
290
  border: none;
258
291
  }
259
292
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "markdown_convert"
7
- version = "1.2.42"
7
+ version = "1.2.43"
8
8
  description = "Convert Markdown files to PDF from your command line."
9
9
  authors = [
10
10
  { name = "Julio Cabria", email = "juliocabria@tutanota.com" },