Giter VIP home page Giter VIP logo

Comments (8)

travs avatar travs commented on June 10, 2024

Thanks for the compliment 😄
Markdown-pdf applies your user styles, so you can just edit your user styles and the changes should show up in the output pdf!

from markdown-pdf.

croxxx avatar croxxx commented on June 10, 2024

@travs Unfortunately markdown-pdf seems to completely ignore everything style-related for me. Only thing used is background color in code blocks.

This is how markdown-preview displays it:
md-preview

And this is the resulting PDF file:
pdf-result

As you see not only the styles are missing (these never worked for me), but also bold font style gets ignored (see top left, this happens since one of the last updates).
In addition the horizontal rules get scrambled.


I'm using a portable version of Atom.
UI Theme: Isotope
Syntax Theme: Seti Monokai

from markdown-pdf.

travs avatar travs commented on June 10, 2024

@croxxx Are you still getting this error?

Also, could you try this with dark solarized syntax and atom dark themes and see if it still ignores styles?

from markdown-pdf.

croxxx avatar croxxx commented on June 10, 2024

Yes, this still seems to be the case.
Below are my new test results.

Default UI and default syntax theme

View from inside Atom

default-markdown

Resulting PDF

default-pdf

Isotope UI and seti-monokai syntax theme

View from inside Atom

monokai-markdown

Resulting PDF

monokai-pdf


Tested using latest versions of all plugins.
So this seems to be a result of using the seti-monokai syntax theme...

from markdown-pdf.

travs avatar travs commented on June 10, 2024

Apologies for taking so long to get back to this; I've been busy with other things and kind of dropped this package for a bit. I'm back now though.

@croxxx
Assuming nothing has changed on this, I'm going to modify the name of this issue and add it to a milestone so we can figure it out.

from markdown-pdf.

croxxx avatar croxxx commented on June 10, 2024

In fact I didn't use Atom for documentation for a while...

Something I didn't mention before:
It might be useful to change the sanitize=true option of the markdown converter.
That would allow HTML to be inserted. I used HTML for pagebreaks in the output.

from markdown-pdf.

travs avatar travs commented on June 10, 2024

@croxxx Ok, I think an option or toggle could be added for that. Please add a separate issue for this, and someone may come along and patch it

from markdown-pdf.

travs avatar travs commented on June 10, 2024

This should be enabled now, I think I just forgot to close the issue

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.