Can we italicize unresolved links to differentiate between it and resolved links
I've tried something like this in postprocess_html.. it didn't work. (changes even resolved links too) Is there another way?
Code:
def postprocess_html(self, soup):
for unresolved in soup.findAll('a', href=lambda x: x and x.startswith('http')):
unresolved['id'] = 'unres-d'
extra_css = '#unres-d{font-style:italic;}
I think this should be done after calibre stitches together all those html files it fetched..