walwe / md2pdf Goto Github PK
View Code? Open in Web Editor NEWPython Markdown to PDF converter
License: MIT License
Python Markdown to PDF converter
License: MIT License
Error:
Traceback (most recent call last):
File "/usr/bin/md2pdf", line 5, in <module>
from markdown2pdf import main
File "/usr/lib/python3.8/site-packages/markdown2pdf/__init__.py", line 20
print css_file
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(css_file)?
When I convert this text (using the command python -m md2pdf Mattenheter.md
):
| Produkt | 1dl, ca gram | 1msk, ca gram | 1 tsk, ca gram | 1 liter, ca gram |
|---|---|---|---|---|
| Vetemjöl | 60 gram | 9 gram | 3 gram | 575-625 gram |
| Smör (fast) | 95 gram | 15 gram | 5 gram | - |
I get this:
| Produkt | 1dl, ca gram | 1msk, ca gram | 1 tsk, ca gram | 1 liter, ca gram | |---|---|---|---|---| | Vetemjöl | 60 gram | 9 gram | 3 gram | 575-625 gram | | Smör (fast) | 95 gram | 15 gram | 5 gram | - |
I'm running version 0.0.2.r0.g9631443
on Arch Linux.
I get the following when running md2pdf [1].
It also does not include an image specified in the md [2].
[1]
$ md2pdf -c documents/stylesheets/markdown.css --keep-html -o out.pdf in.md
Loading page (1/2)
Warning: Blocked access to file
Error: Failed to load about:blank, with network status code 301 and http status code 0 - Protocol "about" is unknown
Printing pages (2/2)
Done
Exit with code 1 due to network error: ProtocolUnknownError
[2]
<div width="100%" style="background-color:#EE0000;padding:25px;"><img src="image/logo.svg" height="80px"></div>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.