markdown_convert 1.2.40__py3-none-any.whl → 1.2.41__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.
@@ -5,7 +5,6 @@ CLI interface to convert markdown files to pdf.
5
5
  Author: @julynx
6
6
  """
7
7
 
8
-
9
8
  from sys import exit as sys_exit
10
9
 
11
10
  from argsdict import args
@@ -78,7 +77,6 @@ def main():
78
77
 
79
78
  # pylint: disable=W0718
80
79
  except Exception as err:
81
-
82
80
  asked_for_help = "--help" in arg or "-h" in arg
83
81
  show_usage = isinstance(err, (IndexError, ValueError)) or asked_for_help
84
82
 
@@ -210,7 +210,7 @@ def convert_text(markdown_text, css_text=None, *, extend_default_css=True):
210
210
  return _generate_pdf_with_playwright(
211
211
  html,
212
212
  None,
213
- css_content=_get_css_content(css_sources),
213
+ css_content="\n".join(css_sources),
214
214
  nonce=nonce,
215
215
  )
216
216
 
@@ -21,13 +21,13 @@ def create_html_document(html_content, css_content, csp):
21
21
  <html>
22
22
  <head>
23
23
  <meta charset="UTF-8">
24
- <meta http-equiv="Content-Security-Policy" content="{csp or ''}">
24
+ <meta http-equiv="Content-Security-Policy" content="{csp or ""}">
25
25
  <style>
26
- {css_content or ''}
26
+ {css_content or ""}
27
27
  </style>
28
28
  </head>
29
29
  <body>
30
- {html_content or ''}
30
+ {html_content or ""}
31
31
  </body>
32
32
  </html>"""
33
33
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: markdown_convert
3
- Version: 1.2.40
3
+ Version: 1.2.41
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>
@@ -9,7 +9,7 @@ License-File: LICENSE
9
9
  Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
10
10
  Classifier: Operating System :: OS Independent
11
11
  Classifier: Programming Language :: Python :: 3
12
- Requires-Python: <3.15,>=3.9
12
+ Requires-Python: <3.15,>=3.11
13
13
  Requires-Dist: argsdict==1.0.0
14
14
  Requires-Dist: beautifulsoup4>=4.14.3
15
15
  Requires-Dist: latex2mathml>=3.78.1
@@ -1,16 +1,16 @@
1
1
  markdown_convert/__init__.py,sha256=ysW3pXsDGGK4PzZHcIBTpfVW58IkDUwHffDkf_GM6UU,303
2
- markdown_convert/__main__.py,sha256=hO7AO0GnzPMPNqls8r5aF2C-7l9aFHDf1m8mXSy1GBE,2809
2
+ markdown_convert/__main__.py,sha256=w6sHfJcJQpMOERPqiNoKgoRM38YUwK22eGBmVkpZj1g,2807
3
3
  markdown_convert/code.css,sha256=Wt4FqFqJcpT-jwY3GN-o4ZRCCXU8DQj-9lqKdGiuoyw,4935
4
4
  markdown_convert/default.css,sha256=rIwRao7l7Rq6rkOaxVMfZ4yGQc2D68eJ7URLQ597GcY,3530
5
5
  markdown_convert/modules/__init__.py,sha256=PFPgiQhMXgyfjD8BkfLC_X8AR1jz-dCxfif2qmNofJs,65
6
6
  markdown_convert/modules/constants.py,sha256=eUeIFRxZerP3E0Rgp_Nsl0Q38IBELwca5UO3fbUcxRA,1280
7
- markdown_convert/modules/convert.py,sha256=n9PrM6b6CwALQrwuVNu2f9B7KA_AQhuvGUaZ9dUHH80,8883
7
+ markdown_convert/modules/convert.py,sha256=02N_Iz4TLKWR1xseNv8hyCTujCJdYepWZlxjXw9tsj0,8876
8
8
  markdown_convert/modules/resources.py,sha256=tnW8JmCrJNBRbzOcaOVG6GX5jPC8Kzj3dA7gX0B935A,2488
9
- markdown_convert/modules/transform.py,sha256=wUC22ENv8OeRfPPHt5Ez46ll9PfL3MYm2Sc6vHxe_a0,3138
9
+ markdown_convert/modules/transform.py,sha256=p7J8LJKBjMA_EtUYIfXqw_Tc1eean7EbM6KW5Tv4AOs,3138
10
10
  markdown_convert/modules/utils.py,sha256=NX0WegM8e8MPKNNmweTujAWO8ZghdB8LSGDx20K2E44,655
11
11
  markdown_convert/modules/validate.py,sha256=XV_k7cHeifEKDaltF26tCmabs2-Me5msP3enI_eVwfA,1517
12
- markdown_convert-1.2.40.dist-info/METADATA,sha256=rlcQOUY2k1aZPNjhnHAr2bpGyanertNw0TOvfJ2jJJ4,3939
13
- markdown_convert-1.2.40.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
- markdown_convert-1.2.40.dist-info/entry_points.txt,sha256=RCmzC7C0sX-SpzIP2Cr34rhg3lMd7BRx-exaZPfK8bU,68
15
- markdown_convert-1.2.40.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
16
- markdown_convert-1.2.40.dist-info/RECORD,,
12
+ markdown_convert-1.2.41.dist-info/METADATA,sha256=ATlu-Biqp5xWcJgxvd9YtO72VtglXtREg2T5JvN0pTw,3940
13
+ markdown_convert-1.2.41.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
+ markdown_convert-1.2.41.dist-info/entry_points.txt,sha256=RCmzC7C0sX-SpzIP2Cr34rhg3lMd7BRx-exaZPfK8bU,68
15
+ markdown_convert-1.2.41.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
16
+ markdown_convert-1.2.41.dist-info/RECORD,,