Coder Social home page Coder Social logo

Support for GFMD about markdown-pdf HOT 5 CLOSED

travs avatar travs commented on August 25, 2024
Support for GFMD

from markdown-pdf.

Comments (5)

travs avatar travs commented on August 25, 2024

@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.

timfallmk avatar timfallmk commented on August 25, 2024

@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.

travs avatar travs commented on August 25, 2024

@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.

oldratlee avatar oldratlee commented on August 25, 2024

👍

from markdown-pdf.

timfallmk avatar timfallmk commented on August 25, 2024

💯 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.