Comments (5)
@timfallmk
Yes, one goal of this project is to output to pdf something very similar (read: identical) to what would be displayed if we rendered the .md on github itself.
I plan to remove the dependency on markdown-pdf
soon, and switch to a html-pdf converter, though I am having trouble finding one on npm that renders it correctly.
This removing of dependency affects the issue you raised here, though it is still a good point, and the end product should be customizable in terms of page size, etc.
If you come across such a converter please let me know!
T
from markdown-pdf.
@travs Agreed, that does seem to be the problem, and I've looked myself. Even python based renderers like pandoc have trouble with the conversion process.
It might be worth investigating whether to go straight to a postscript render for pdf's, that way it's WYSWYG.
from markdown-pdf.
@timfallmk
I have changed the dependency to work with marked
and a node package called html-pdf
.
The rendered output seems a bit better, but text is not selectable, which is a major bummer.
Perhaps support will be added to the phantomjs library soon, and this problem would be resolved.
I haven't looked into anything rendering from postscript, have you seen anything promising in that regard?
from markdown-pdf.
👍
from markdown-pdf.
💯 I haven't found any quick solutions to the problem, but I'll let you know if I do.
from markdown-pdf.
Related Issues (20)
- the images path over length HOT 2
- Conversion fails with `Error: ENOENT: ...` HOT 2
- Unmaintained repository ? HOT 4
- Rewrite the project HOT 2
- Misleading error when trying to convert from a non-editor pane
- Custom user styles doesn't work HOT 3
- Lists with sub-lists do not export to pdf correctly HOT 1
- NBSP Shows Instead of Spaces HOT 2
- Not able to export to other formats than pdf
- Failed to activate the markdown-pdf package HOT 2
- Does not render footnotes (e.g. gitlab flavored markdown)
- Can't disable syntax highlighting in code blocks
- Cannot read property 'pre' of undefined
- How can i use markdown-pdf from the external command line?
- Uncaught Error: Cannot find module 'less'Require stack:- $ATOM_HOME/packages\markdown-pdf\lib\a...
- List numbering is not as expected
- Links to sections of the document do not work in the PDF
- Each line in markdown is written as a new line and not as a paragraph in the PDF
- Missing table element in convert precess
- Base 64 images in markdown are not displayed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdown-pdf.