alexadam / save-as-ebook

Save a web page/selection as an eBook (.epub format) - a Chrome/Firefox/Opera Web Extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

br tag disappears from inside pre tags

bunglegrind opened this issue · comments

I'm trying to convert the Wordpress Plugin Handbook in epub.

I'm noticing several issues, I'm currently investigating on the causes.

I set a custom style with the following rules:

#wpadminbar {
    display:none;
}
#wporg-header {
    display:none;
}
header {
    display:none;
}
#secondary {
    display:none;
}
#wporg-footer {
    display:none;
}
.breadcrumbs {
    display:none;
}
.nav-links {
    display:none;
}
.table-of-contents {
    display:none;
}
.toc-jump {
    display:none;
}
#content {
    max-width:100%!important;
}
.screen-reader-text {
    display:none;
}

But if I convert this page:

https://developer.wordpress.org/plugins/plugin-basics/determining-plugin-and-content-directories/

the br inside the pre tags are removed showing all the content in the same line...

this issue should be fixed in the next release (probably next week). You can try it now by manually installing the ext. from the repository.

Yep! It works! Thanks