mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 18:45:20 -04:00
Add a class to nuked tags so they can have styling applied via extra_css
This commit is contained in:
@@ -1096,6 +1096,7 @@ class BasicNewsRecipe(Recipe):
|
||||
# Nuke HTML5 tags
|
||||
for x in ans.findAll(['article', 'aside', 'header', 'footer', 'nav',
|
||||
'figcaption', 'figure', 'section']):
|
||||
x.get_attribute_list('class').append(f'calibre-nuked-tag-{x.name}')
|
||||
x.name = 'div'
|
||||
|
||||
if job_info:
|
||||
|
||||
Reference in New Issue
Block a user