Hi! I'm very new to Calibre, and I've been trying to make a recipe for some blogs I like. I am having a problem with one of them regarding the use of italics. It seems that when the blog has a <i> tag, Calibre creates a <span class="italics"> tag inside a <p class="calibre_115">, separating the word in italics from the rest of the text. It does not happen with the <em> tag that another blog uses, so I've tried to replace I for EM adding this to the recipe:
But it still does not work. Any ideas? Thanks!
Code:
preprocess_regexps = [
(re.compile(r'<i>', re.DOTALL|re.IGNORECASE), lambda match: '<em>'),
(re.compile(r'</i>', re.DOTALL|re.IGNORECASE), lambda match: '</em>')
]