refactor Polymer code in gh-markdown.html