markdown_convert 1.2.12__py3-none-any.whl → 1.2.32__py3-none-any.whl

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,373 +1,229 @@
1
- /* Font imports */
2
- /* -- Cantarell Web */
3
- @font-face {
4
- font-family: "Cantarell Web";
5
- font-style: italic;
6
- font-weight: 400;
7
- font-display: swap;
8
- src: url(https://fonts.gstatic.com/s/cantarell/v17/B50LF7ZDq37KMUvlO015iZJnNKuiLA.woff2) format("woff2");
9
- unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
10
- U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
11
- }
12
-
13
- @font-face {
14
- font-family: "Cantarell Web";
15
- font-style: italic;
16
- font-weight: 400;
17
- font-display: swap;
18
- src: url(https://fonts.gstatic.com/s/cantarell/v17/B50LF7ZDq37KMUvlO015iZJpNKs.woff2) format("woff2");
19
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
20
- U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
21
- U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
22
- }
23
-
24
- @font-face {
25
- font-family: "Cantarell Web";
26
- font-style: italic;
27
- font-weight: 700;
28
- font-display: swap;
29
- src: url(https://fonts.gstatic.com/s/cantarell/v17/B50WF7ZDq37KMUvlO015iZrSEb6TDYsmgQ.woff2) format("woff2");
30
- unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
31
- U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
32
- }
33
-
34
- @font-face {
35
- font-family: "Cantarell Web";
36
- font-style: italic;
37
- font-weight: 700;
38
- font-display: swap;
39
- src: url(https://fonts.gstatic.com/s/cantarell/v17/B50WF7ZDq37KMUvlO015iZrSEb6dDYs.woff2) format("woff2");
40
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
41
- U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
42
- U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
43
- }
44
-
45
- @font-face {
46
- font-family: "Cantarell Web";
47
- font-style: normal;
48
- font-weight: 400;
49
- font-display: swap;
50
- src: url(https://fonts.gstatic.com/s/cantarell/v17/B50NF7ZDq37KMUvlO015gqJrLK8.woff2) format("woff2");
51
- unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
52
- U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
53
- }
54
-
55
- @font-face {
56
- font-family: "Cantarell Web";
57
- font-style: normal;
58
- font-weight: 400;
59
- font-display: swap;
60
- src: url(https://fonts.gstatic.com/s/cantarell/v17/B50NF7ZDq37KMUvlO015jKJr.woff2) format("woff2");
61
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
62
- U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
63
- U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
64
- }
65
-
66
- @font-face {
67
- font-family: "Cantarell Web";
68
- font-style: normal;
69
- font-weight: 700;
70
- font-display: swap;
71
- src: url(https://fonts.gstatic.com/s/cantarell/v17/B50IF7ZDq37KMUvlO01xN4d-HY6fFY8.woff2) format("woff2");
72
- unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
73
- U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
74
- }
75
-
76
- @font-face {
77
- font-family: "Cantarell Web";
78
- font-style: normal;
79
- font-weight: 700;
80
- font-display: swap;
81
- src: url(https://fonts.gstatic.com/s/cantarell/v17/B50IF7ZDq37KMUvlO01xN4d-E46f.woff2) format("woff2");
82
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
83
- U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
84
- U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
85
- }
86
-
87
- /* -- JetBrains Mono */
88
- @font-face {
89
- font-family: "JetBrains Mono";
90
- src: url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Bold-Italic.woff2") format("woff2"),
91
- url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Bold-Italic.woff") format("woff");
92
- font-weight: 700;
93
- font-style: italic;
94
- font-display: swap;
95
- }
96
-
97
- @font-face {
98
- font-family: "JetBrains Mono";
99
- src: url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Bold.woff2") format("woff2"),
100
- url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Bold.woff") format("woff");
101
- font-weight: 700;
102
- font-style: normal;
103
- font-display: swap;
104
- }
105
-
106
- @font-face {
107
- font-family: "JetBrains Mono";
108
- src: url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-ExtraBold-Italic.woff2") format("woff2"),
109
- url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-ExtraBold-Italic.woff") format("woff");
110
- font-weight: 800;
111
- font-style: italic;
112
- font-display: swap;
113
- }
114
-
115
- @font-face {
116
- font-family: "JetBrains Mono";
117
- src: url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-ExtraBold.woff2") format("woff2"),
118
- url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-ExtraBold.woff") format("woff");
119
- font-weight: 800;
120
- font-style: normal;
121
- font-display: swap;
122
- }
123
-
124
- @font-face {
125
- font-family: "JetBrains Mono";
126
- src: url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Italic.woff2") format("woff2"),
127
- url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Italic.woff") format("woff");
128
- font-weight: 400;
129
- font-style: italic;
130
- font-display: swap;
131
- }
132
-
133
- @font-face {
134
- font-family: "JetBrains Mono";
135
- src: url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Medium-Italic.woff2") format("woff2"),
136
- url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Medium-Italic.woff") format("woff");
137
- font-weight: 500;
138
- font-style: italic;
139
- font-display: swap;
140
- }
141
-
142
- @font-face {
143
- font-family: "JetBrains Mono";
144
- src: url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Medium.woff2") format("woff2"),
145
- url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Medium.woff") format("woff");
146
- font-weight: 500;
147
- font-style: normal;
148
- font-display: swap;
149
- }
150
-
151
- @font-face {
152
- font-family: "JetBrains Mono";
153
- src: url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Regular.woff2") format("woff2"),
154
- url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Regular.woff") format("woff");
155
- font-weight: 400;
156
- font-style: normal;
157
- font-display: swap;
158
- }
159
-
160
- /* Print media css */
161
- @page {
162
- size: A4;
163
- margin: 2.54cm;
164
- }
165
-
166
- :root {
167
- /* -- Standard margins */
168
- --top-margin: 1em;
169
- --left-margin: 1.5em;
170
-
171
- /* -- Small margins */
172
- --left-margin-small: 1em;
173
-
174
- /* -- Big margins */
175
- --left-margin-big: 2em;
176
- --bottom-margin-big: 0.5em;
177
- }
178
-
179
- /* Document */
180
- html {
181
- font-size: 10px;
182
- }
183
-
184
- body {
185
- margin: 0;
186
- padding: 0;
187
- font-family: "Cantarell Web", "Cantarell", sans-serif;
188
- color: #333;
189
- }
190
-
191
- /* Headers and paragraphs */
192
- h1,
193
- h2,
194
- h3,
195
- h4,
196
- h5 {
197
- color: #333;
198
- font-weight: 400;
199
- }
200
-
201
- h1 {
202
- margin-top: 0;
203
- margin-bottom: var(--bottom-margin-big);
204
- }
205
-
206
- h2,
207
- h3,
208
- h4,
209
- h5,
210
- p {
211
- margin-top: var(--top-margin);
212
- margin-bottom: 0;
213
- }
214
-
215
- h1 {
216
- font-size: 4.8rem;
217
- }
218
-
219
- h2 {
220
- font-size: 3.6rem;
221
- }
222
-
223
- h3 {
224
- font-size: 2.4rem;
225
- }
226
-
227
- h4 {
228
- font-size: 1.8rem;
229
- }
230
-
231
- h5 {
232
- font-size: 1.4rem;
233
- }
234
-
235
- p {
236
- font-size: 1.2rem;
237
- }
238
-
239
- /* Links */
240
- a {
241
- color: #09f;
242
- margin: 0;
243
- vertical-align: baseline;
244
- }
245
-
246
- /* Lists */
247
- ul,
248
- ol {
249
- font-size: 1.2rem;
250
- padding: 0;
251
- margin-top: var(--top-margin);
252
- margin-right: 0;
253
- margin-bottom: var(--bottom-margin);
254
- margin-left: var(--left-margin-big);
255
- }
256
-
257
- ul ol,
258
- ol ul,
259
- ol ol,
260
- ul ul {
261
- margin-top: 0;
262
- }
263
-
264
- li {
265
- margin-top: 0.5rem;
266
- }
267
-
268
- /* Code blocks */
269
- pre {
270
- padding: 0;
271
- white-space: pre-wrap;
272
- }
273
-
274
- code {
275
- font-family: "JetBrains Mono", "Courier New", Courier, monospace;
276
- font-size: 1rem;
277
- background-color: #eee;
278
- padding-left: 0.4em;
279
- padding-right: 0.4em;
280
- display: inline-block;
281
- border-radius: 0.3em;
282
- line-height: 1.5;
283
- }
284
-
285
- h1 code,
286
- h2 code,
287
- h3 code,
288
- h4 code,
289
- h5 code {
290
- font-size: 0.8em;
291
- }
292
-
293
- /* Quotes */
294
- blockquote {
295
- margin-top: var(--top-margin);
296
- margin-left: var(--left-margin);
297
- max-width: 30em;
298
- border-left: 4px solid #ccc;
299
- padding-left: 0.5em;
300
- color: #666;
301
- }
302
-
303
- blockquote>blockquote {
304
- margin-left: var(--left-margin-small);
305
- }
306
-
307
- /* Figures */
308
- img {
309
- display: block;
310
- margin: 2em auto 1em auto;
311
- max-width: 80%;
312
- }
313
-
314
- /* -- Figure footer */
315
- p>img+em {
316
- text-align: center;
317
- font-size: 1rem;
318
- font-style: italic;
319
- color: #666;
320
- display: block;
321
- margin: 1em auto 2em;
322
- }
323
-
324
- /* Tables */
325
- table {
326
- font-size: 1rem;
327
- border-collapse: collapse;
328
- margin-top: var(--top-margin);
329
- text-align: left;
330
- table-layout: auto;
331
- }
332
-
333
- thead {
334
- background-color: #eee;
335
- }
336
-
337
- tbody {
338
- color: #666;
339
- }
340
-
341
- th,
342
- td {
343
- padding: 0.5em 0.75em;
344
- border: 1px solid #ccc;
345
- white-space: nowrap;
346
- }
347
-
348
- col {
349
- width: auto;
350
- }
351
-
352
- /* Page breaks */
353
- .pagebreak {
354
- clear: both;
355
- page-break-after: always;
356
- }
357
-
358
- .pagebreak+* {
359
- margin-top: 0;
360
- }
361
-
362
- li,
363
- table,
364
- blockquote,
365
- code,
366
- p,
367
- h1,
368
- h2,
369
- h3,
370
- h4,
371
- h5 {
372
- page-break-inside: avoid;
373
- }
1
+ :root {
2
+ /* -- Standard margins */
3
+ --top-margin: 0.75em;
4
+ --bottom-margin: 0.5em;
5
+ --left-margin: 1.5em;
6
+
7
+ /* -- Small margins */
8
+ --left-margin-small: 1em;
9
+ --top-margin-small: 0.25em;
10
+ --bottom-margin-small: 0.15em;
11
+
12
+ /* -- Big margins */
13
+ --left-margin-big: 2em;
14
+ }
15
+
16
+ /* Document */
17
+ html {
18
+ font-size: 12px;
19
+ }
20
+
21
+ body {
22
+ margin: 0;
23
+ padding: 0;
24
+ font-family: "Segoe UI", "Ubuntu", "DejaVu Sans", "Liberation Sans", "Arial",
25
+ "sans-serif";
26
+ color: #333;
27
+ }
28
+
29
+ /* Headers and paragraphs */
30
+ h1,
31
+ h2,
32
+ h3,
33
+ h4,
34
+ h5 {
35
+ color: #333;
36
+ font-weight: 600;
37
+ }
38
+
39
+ h1 {
40
+ margin-top: 0;
41
+ margin-bottom: var(--bottom-margin);
42
+ }
43
+
44
+ h2,
45
+ h3,
46
+ h4,
47
+ h5,
48
+ p {
49
+ margin-top: var(--top-margin);
50
+ margin-bottom: 0;
51
+ }
52
+
53
+ h1 {
54
+ font-size: 2.2rem;
55
+ border-bottom: 0.5px solid #999;
56
+ padding-bottom: var(--bottom-margin-small);
57
+ }
58
+
59
+ h2 {
60
+ font-size: 1.8rem;
61
+ border-bottom: 0.5px solid #999;
62
+ padding-bottom: var(--bottom-margin-small);
63
+ }
64
+
65
+ h3 {
66
+ font-size: 1.4rem;
67
+ }
68
+
69
+ h4 {
70
+ font-size: 1.2rem;
71
+ }
72
+
73
+ h5 {
74
+ font-size: 1rem;
75
+ }
76
+
77
+ p {
78
+ font-size: 1rem;
79
+ }
80
+
81
+ /* Links */
82
+ a {
83
+ color: #09f;
84
+ margin: 0;
85
+ vertical-align: baseline;
86
+ }
87
+
88
+ /* Lists */
89
+ ul,
90
+ ol {
91
+ font-size: 1rem;
92
+ padding: 0;
93
+ margin-top: var(--top-margin);
94
+ margin-right: 0;
95
+ margin-bottom: var(--bottom-margin);
96
+ margin-left: var(--left-margin-big);
97
+ }
98
+
99
+ ul ol,
100
+ ol ul,
101
+ ol ol,
102
+ ul ul {
103
+ margin-top: 0;
104
+ }
105
+
106
+ li {
107
+ margin-top: var(--top-margin-small);
108
+ }
109
+
110
+ /* Code blocks */
111
+ pre {
112
+ padding: 0;
113
+ white-space: pre-wrap;
114
+ }
115
+
116
+ code {
117
+ font-family: "JetBrains Mono", "Consolas", "Ubuntu Mono", "DejaVu Sans Mono",
118
+ "Liberation Mono", "Courier New", monospace;
119
+ font-size: 1rem;
120
+ background-color: #eee;
121
+ padding-left: 0.4em;
122
+ padding-right: 0.4em;
123
+ display: inline-block;
124
+ border-radius: 0.3em;
125
+ line-height: 1.5;
126
+ }
127
+
128
+ h1 code,
129
+ h2 code,
130
+ h3 code,
131
+ h4 code,
132
+ h5 code {
133
+ font-size: 0.8em;
134
+ }
135
+
136
+ /* Quotes */
137
+ blockquote {
138
+ margin-top: var(--top-margin);
139
+ margin-left: var(--left-margin);
140
+ border-left: 4px solid #ccc;
141
+ padding-left: 0.5em;
142
+ color: #666;
143
+ }
144
+
145
+ blockquote > blockquote {
146
+ margin-left: var(--left-margin-small);
147
+ }
148
+
149
+ /* Figures */
150
+ img {
151
+ display: block;
152
+ margin: 2em auto 1em auto;
153
+ max-width: 80%;
154
+ }
155
+
156
+ /* -- Figure footer */
157
+ p > img + em {
158
+ text-align: center;
159
+ font-size: 1rem;
160
+ font-style: italic;
161
+ color: #666;
162
+ display: block;
163
+ margin: 1em auto 2em;
164
+ }
165
+
166
+ /* Tables */
167
+ table {
168
+ font-size: 1rem;
169
+ font-family: inherit;
170
+ border-collapse: collapse;
171
+ margin-top: var(--top-margin);
172
+ text-align: left;
173
+ table-layout: auto;
174
+ }
175
+
176
+ thead {
177
+ background-color: #eee;
178
+ }
179
+
180
+ tbody {
181
+ color: #666;
182
+ }
183
+
184
+ th,
185
+ td {
186
+ padding: 0.5em 0.75em;
187
+ border: 1px solid #ccc;
188
+ white-space: nowrap;
189
+ }
190
+
191
+ col {
192
+ width: auto;
193
+ }
194
+
195
+ /* Page breaks */
196
+ .pagebreak {
197
+ clear: both;
198
+ page-break-after: always;
199
+ }
200
+
201
+ .pagebreak + * {
202
+ margin-top: 0;
203
+ }
204
+
205
+ section,
206
+ ol,
207
+ ul,
208
+ table,
209
+ blockquote,
210
+ code,
211
+ p,
212
+ h1,
213
+ h2,
214
+ h3,
215
+ h4,
216
+ h5 {
217
+ page-break-inside: avoid;
218
+ }
219
+
220
+ /* Increase vertical padding for math elements with display=block */
221
+ math[display="block"] {
222
+ margin-top: 1em;
223
+ margin-bottom: 1em;
224
+ }
225
+
226
+ math {
227
+ text-rendering: optimizeLegibility;
228
+ font-family: "Latin Modern Math", "Cambria Math", serif;
229
+ }
@@ -0,0 +1,4 @@
1
+ """
2
+ Empty file to make the folder a package.
3
+ Author: @julynx
4
+ """
@@ -0,0 +1,25 @@
1
+ """
2
+ This module contains the constants used in the markdown_convert package.
3
+ Author: @julynx
4
+ """
5
+
6
+ RED = "31"
7
+ GREEN = "32"
8
+ YELLOW = "33"
9
+ BLUE = "34"
10
+ MAGENTA = "35"
11
+ CYAN = "36"
12
+
13
+ OPTIONS = ("markdown_file_path", "--mode", "--css", "--out", "-h", "--help")
14
+
15
+ OPTIONS_MODES = ("once", "live", "debug")
16
+
17
+ MARKDOWN_EXTENSIONS = {
18
+ "fenced-code-blocks": None,
19
+ "header-ids": True,
20
+ "breaks": {"on_newline": True},
21
+ "tables": True,
22
+ "latex": True,
23
+ "mermaid": None,
24
+ "strike": None,
25
+ }