Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A syntax highlighter for code blocks #12

Open
vb64 opened this issue Feb 29, 2024 · 2 comments
Open

A syntax highlighter for code blocks #12

vb64 opened this issue Feb 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@vb64
Copy link
Owner

vb64 commented Feb 29, 2024

https://stackoverflow.com/questions/23825317/how-to-convert-markdown-css-pdf/78079072#78079072

@vb64 vb64 added the enhancement New feature or request label Feb 29, 2024
@gabrielbdornas
Copy link

Great feature to add to this lib. By the way, congratulations on the work, it is awesome!

I'm wondering if it would be possible to use 3º party libraries instead of writing our on CSS code, as suggested in this stackoverflow answer

@vb64
Copy link
Owner Author

vb64 commented Jun 27, 2024

Great feature to add to this lib.

Ok, I'll try to implement this issue in the next version.

Unfortunately, I am currently very busy with another project, so I cannot give any ETA.

You can try to implement this feature yourself, prepare a pull request and become a co-author of this library.

To do this, you need to explore the way that markdown-it-py uses to generate html with syntax highlighting. As far as I understand, this requires additional markdown-it-py plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants