diff --git a/src/calibre/ebooks/lrf/input.py b/src/calibre/ebooks/lrf/input.py index 1d730ab573..b5591176d1 100644 --- a/src/calibre/ebooks/lrf/input.py +++ b/src/calibre/ebooks/lrf/input.py @@ -12,6 +12,7 @@ from copy import deepcopy from lxml import etree from calibre.customize.conversion import InputFormatPlugin +from calibre.ebooks.conversion.utils import PreProcessor from calibre import guess_type class Canvas(etree.XSLTExtension): @@ -419,4 +420,9 @@ class LRFInput(InputFormatPlugin): styles.write() return os.path.abspath('content.opf') + def preprocess_html(self, html): + preprocessor = PreProcessor(log=getattr(self, 'log', None)) + return preprocessor(html) + +