lib/docgen/formatter.js
function toGithubHash(title) {
  var GITHUB_ILLEGAL = new RegExp('[\\[\\]{}()<>^$#@!%&*+\/\\|~`"\':;,.]', 'g');
  return title.toLowerCase().replace(/ /g, '-').replace(GITHUB_ILLEGAL, '');
}
function toGithubHash(title) {
  var GITHUB_ILLEGAL = new RegExp('[\\[\\]{}()<>^$#@!%&*+\/\\|~`"\':;,.]', 'g');
  return title.toLowerCase().replace(/ /g, '-').replace(GITHUB_ILLEGAL, '');
}
function toGithubHash ( title ) { var GITHUB_ILLEGAL = new RegExp ( '[\\[\\]{}()<>^$#@!%&*+\/\\|~`"\':;,.]' , 'g' ) ; return title . toLowerCase ( ) . replace ( / / g , '-' ) . replace ( GITHUB_ILLEGAL , '' ) ; }
Algorithm of generating a HTML label used in Github Markdown
Algorithm of generating a HTML label used in Github Markdown