spawnia / md-to-pdf Goto Github PK
View Code? Open in Web Editor NEWA web service for converting markdown to PDF
Home Page: https://md-to-pdf.fly.dev
License: MIT License
A web service for converting markdown to PDF
Home Page: https://md-to-pdf.fly.dev
License: MIT License
The md to pdf is not respoding
The web version for quick experimentation is down
If width
and height
is specified as img
attributes, PDF export does not respect this and exports image in its original size.
Example:
<img height="100" width="100" src="https://vegabox.hu/wp-content/uploads/2020/01/apples-poland-red-jonaprince-1-e1643214217535.jpg" />
However, if width
and height
are specified in CSS then it works:
img {
width: 100px;
height: 100px;
}
As I use this with an image inserting and resizing plugin which generates img
with width
and height
attributes,
it would be nice to have PDF export respecting these attributes as well.
There is some security issue here, I could not use this service:
curl --data-urlencode "markdown='# Heading 1'" --output md-to-pdf.pdf https://md-to-pdf.fly.dev
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012)
Also tried from PostMan and React web app, but got 422 Unprocessable Entity error.
How to fix this?
Hi there. I got the Docker container working locally and it outputs beautifully.
I am having trouble deploying it to fly.io. I think the issue is in my Dockerfile.
FROM spawnia/md-to-pdf
CMD ["md-to-pdf", "-", "-o", "output.pdf"]
I'm sure it's wrong and will appreciate any advice. Thanks in advance!
Lists written in the form:
Are rendered on a single line and not treated as nested lists
excellent work!!!!
I have try
$$
kernel = \frac{1}{9}\left[
\begin{matrix}
1 & 1 & 1 \newline
1 & 1 & 1 \newline
1 & 1 & 1
\end{matrix}
\right]
$$
but not work.
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.