markdown_convert 1.2.37__tar.gz → 1.2.39__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.37
3
+ Version: 1.2.39
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>
@@ -1,21 +1,21 @@
1
1
  :root {
2
- /* -- Standard margins */
3
- --top-margin: 0.75em;
4
- --bottom-margin: 0.5em;
5
- --left-margin: 1.5em;
2
+ /* -- Header margins -- */
3
+ --top-margin: 1em;
4
+ --bottom-margin-small: 0.25em;
6
5
 
7
- /* -- Small margins */
8
- --left-margin-small: 1em;
9
- --top-margin-small: 0.25em;
10
- --bottom-margin-small: 0.15em;
6
+ /* -- Element margins -- */
7
+ --bottom-margin: 0.75em;
11
8
 
12
- /* -- Big margins */
9
+ /* -- Nested element margins -- */
10
+ --left-margin: 1.5em;
11
+ --left-margin-small: 1em;
13
12
  --left-margin-big: 2em;
14
13
  }
15
14
 
16
15
  /* Document */
17
16
  html {
18
17
  font-size: 12px;
18
+ line-height: 1.6;
19
19
  }
20
20
 
21
21
  body {
@@ -27,39 +27,41 @@ body {
27
27
  }
28
28
 
29
29
  /* Headers and paragraphs */
30
- h1,
30
+ h1 {
31
+ margin-top: 0;
32
+ margin-bottom: var(--bottom-margin-small);
33
+ }
34
+
31
35
  h2,
32
36
  h3,
33
37
  h4,
34
38
  h5 {
35
- color: #333;
36
- font-weight: 600;
39
+ margin-top: var(--top-margin);
40
+ margin-bottom: var(--bottom-margin-small);
37
41
  }
38
42
 
39
- h1 {
43
+ p {
40
44
  margin-top: 0;
41
45
  margin-bottom: var(--bottom-margin);
42
46
  }
43
47
 
48
+ h1,
44
49
  h2,
45
50
  h3,
46
51
  h4,
47
- h5,
48
- p {
49
- margin-top: var(--top-margin);
50
- margin-bottom: 0;
52
+ h5 {
53
+ color: #333;
54
+ font-weight: 600;
51
55
  }
52
56
 
53
57
  h1 {
54
58
  font-size: 2.2rem;
55
59
  border-bottom: 0.5px solid #999;
56
- padding-bottom: var(--bottom-margin-small);
57
60
  }
58
61
 
59
62
  h2 {
60
63
  font-size: 1.8rem;
61
64
  border-bottom: 0.5px solid #999;
62
- padding-bottom: var(--bottom-margin-small);
63
65
  }
64
66
 
65
67
  h3 {
@@ -89,22 +91,20 @@ a {
89
91
  ul,
90
92
  ol {
91
93
  font-size: 1rem;
92
- padding: 0;
93
- margin-top: var(--top-margin);
94
- margin-right: 0;
94
+ margin-top: 0;
95
95
  margin-bottom: var(--bottom-margin);
96
- margin-left: var(--left-margin-big);
96
+ margin-right: 0;
97
+ margin-left: var(--left-margin-small);
98
+ padding-left: var(--left-margin);
97
99
  }
98
100
 
99
101
  ul ol,
100
102
  ol ul,
101
103
  ol ol,
102
104
  ul ul {
103
- margin-top: 0;
104
- }
105
-
106
- li {
107
- margin-top: var(--top-margin-small);
105
+ margin-bottom: 0;
106
+ margin-left: 0;
107
+ padding-left: var(--left-margin);
108
108
  }
109
109
 
110
110
  /* Code blocks */
@@ -113,10 +113,10 @@ pre {
113
113
  white-space: pre-wrap;
114
114
  }
115
115
 
116
- pre > code {
116
+ pre>code {
117
117
  display: block;
118
118
  padding: 1em;
119
- margin-top: var(--top-margin);
119
+ margin-top: 0;
120
120
  margin-bottom: var(--bottom-margin);
121
121
  }
122
122
 
@@ -142,15 +142,16 @@ h5 code {
142
142
 
143
143
  /* Quotes */
144
144
  blockquote {
145
- margin-top: var(--top-margin);
145
+ margin-top: 0;
146
+ margin-bottom: var(--bottom-margin);
146
147
  margin-left: var(--left-margin);
147
148
  border-left: 4px solid #ccc;
148
149
  padding-left: 0.5em;
149
150
  color: #666;
150
151
  }
151
152
 
152
- blockquote > blockquote {
153
- margin-left: var(--left-margin-small);
153
+ blockquote>blockquote {
154
+ padding-left: var(--left-margin-small);
154
155
  }
155
156
 
156
157
  /* Figures */
@@ -161,7 +162,7 @@ img {
161
162
  }
162
163
 
163
164
  /* -- Figure footer */
164
- p > img + em {
165
+ p>img+em {
165
166
  text-align: center;
166
167
  font-size: 1rem;
167
168
  font-style: italic;
@@ -175,7 +176,8 @@ table {
175
176
  font-size: 1rem;
176
177
  font-family: inherit;
177
178
  border-collapse: collapse;
178
- margin-top: var(--top-margin);
179
+ margin-top: 0;
180
+ margin-bottom: var(--bottom-margin);
179
181
  text-align: left;
180
182
  width: 100%;
181
183
  table-layout: auto;
@@ -214,7 +216,7 @@ td {
214
216
  page-break-after: always;
215
217
  }
216
218
 
217
- .pagebreak + * {
219
+ .pagebreak+* {
218
220
  margin-top: 0;
219
221
  }
220
222
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "markdown_convert"
7
- version = "1.2.37"
7
+ version = "1.2.39"
8
8
  description = "Convert Markdown files to PDF from your command line."
9
9
  authors = [
10
10
  { name = "Julio Cabria", email = "juliocabria@tutanota.com" },