POR tag added & refactoring repo-to-html for easier unit testing