save-as-ebook icon indicating copy to clipboard operation
save-as-ebook copied to clipboard

br tag disappears from inside pre tags

Open bunglegrind opened this issue 5 years ago • 2 comments
trafficstars

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...

bunglegrind avatar Mar 03 '20 13:03 bunglegrind

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.

alexadam avatar Mar 06 '20 07:03 alexadam

Yep! It works! Thanks

bunglegrind avatar Mar 06 '20 12:03 bunglegrind