Commit graph

14 commits

Author SHA1 Message Date
Ethan Dalool
8026bb55c4 Redesign replace_classes_real_tags to use regex.
I started to get sick of all the center center1 center2 business.
2020-01-05 23:34:14 -08:00
Ethan Dalool
ca1c5e6373 More classes. 2020-01-05 23:33:15 -08:00
Ethan Dalool
c653f084ce More classes. 2020-01-05 21:33:15 -08:00
Ethan Dalool
b890aba570 Add more classes to delete and convert. 2019-12-29 13:08:31 -08:00
Ethan Dalool
3ad862a9d0 Remove empty classes from elements. 2019-12-29 13:08:12 -08:00
Ethan Dalool
68a555cfd8 Upgrade convert_textdivs_p to allow some children. 2019-12-29 13:07:35 -08:00
Ethan Dalool
6e2c36bdbb Restrict footnotes to appearing after good elements.
Otherwise you can get blockquotes appearing inside inline
elements which is invalid.
2019-12-29 13:06:51 -08:00
Ethan Dalool
d89394215b Handle nested footnotes in separate passes.
Otherwise the nested one lands where the parent one already is,
then doesn't get moved to the real destination.
2019-12-29 13:05:28 -08:00
Ethan Dalool
5195b3a560 Split collection and injection of footnotes into two functions. 2019-12-29 13:04:42 -08:00
Ethan Dalool
4c5f416e2c Add helper function contains_class. 2019-12-29 13:03:44 -08:00
Ethan Dalool
45ba419f16 Update. 2019-09-08 21:20:32 -07:00
Ethan Dalool
0bd5315e0a Addd pgepubid\d+ to the calibre delete list. 2019-08-25 12:54:27 -07:00
Ethan Dalool
fd1d0cd51f Don't add space between neighboring tags where there wasn't any. 2019-08-25 12:54:03 -07:00
Ethan Dalool
1c4a73ca01 Add cleanerupper. 2019-08-03 00:24:52 -07:00