alexadam / save-as-ebook

Save a web page/selection as an eBook (.epub format) - a Chrome/Firefox/Opera Web Extension
MIT License
1.1k stars 70 forks source link

syntax highlighted code rendering is messed up #3

Closed btbytes closed 7 years ago

btbytes commented 8 years ago

Please see the comparison between the HTML rendering of the code and its epub version obtained using save-as-ebook. The epub was opened using iBook.

pgss 2016-08-24 at 9 06 37 am pgss 2016-08-24 at 9 06 24 am
alexadam commented 8 years ago

Can you, please, send me a link with the example (or something similar)? Thanks.

btbytes commented 8 years ago

See how the syntax highlighted code renders on this page - https://www.btbytes.com/pages/org-simple.html

alexadam commented 7 years ago

I did some changes, it's far from perfect but I think it renders pre/code elements better now. Can you, please, update and retry? At this point styles are not supported so the syntax highlight is not preserved.