1 from twisted.lore import default
2 from myhtml import spitters
4 class MyProcessingFunctionFactory(default.ProcessingFunctionFactory):
5 # 1. add the keys "chapter" and "section" to latexSpitters to handle the
6 # --config chapter and --config section options
7 latexSpitters={None: spitters.MyLatexSpitter,
8 "section": spitters.MySectionLatexSpitter,
9 "chapter": spitters.MyChapterLatexSpitter,
12 def getLintChecker(self):
13 checker = lint.getDefaultChecker()
14 checker.allowedClasses = checker.allowedClasses.copy()
15 oldSpan = checker.allowedClasses['span']
16 checkfunc=lambda cl: oldSpan(cl) or cl in ['marketinglie',
18 checker.allowedClasses['span'] = checkfunc
21 factory=MyProcessingFunctionFactory()