refactor for GitHub syntax highlighting