Sure, I could switch all the CSS class tests to regex and avoid the nested `for` loop.   I'd need one regex test per condition though but I could bail early if the `all-linenums` or `all-pre` config class had been found on a previous element.