GitbookIO/gitbook — pull request #303 by livelazily (2014-06-10 06:20:22+00:00)
Title: generate header id the same as github

for example:

Original marked:
```js
var marked = require('marked');

var input = '### CollectionView\'s `getItemView`';

console.log(marked.parse(input));
//=>

CollectionView's getItemView

```
the `h3`'s id is `collectionview-s-getitemview-`

but in github, the id is `collectionviews-getitemview`
github just ignore all non word characters