modified cherry picking preprocessor; simplified and made specific for pdf slides html tags