Apply regex before generating documentation for APIs for highlighting.