https://gitlab.com/gitlab-org/gitlab-ce/blob/05922e71f45670a1b75d8b700bf894258c79fcd7/app/helpers/gitlab_markdown_helper.rb#L125