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

Error when displaying codeblock #67

Closed
ikaro2004 opened this issue Jan 21, 2024 · 2 comments
Closed

Error when displaying codeblock #67

ikaro2004 opened this issue Jan 21, 2024 · 2 comments

Comments

@ikaro2004
Copy link

On some pages when converting them to markdown it only shows the first line of the codeblock.

Ej.
https://www.bitsgalore.org/2023/03/09/extracting-text-from-epub-files-in-python

@sanzoghenzo
Copy link
Owner

Hi, sorry for the radio silence!

Unfortunately, this is something beyond my control, it seems that the html2md library that I use don't work well with <span> tags inside <code> tag.

I've forwarded the issue to the library developer.

BTW, that webpage markdown source can be found here 😉

sanzoghenzo added a commit that referenced this issue Feb 5, 2024
@sanzoghenzo
Copy link
Owner

Until (and if) this is fixed upstream, I've managed to use a custom html2md rule to make it work 😉

In the next few days I'll try to add some other fixes/features before making a release.

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

No branches or pull requests

2 participants