chjj/marked — pull request #282 by tenbits (2013-11-10 20:01:56+00:00)
Title: Hook support for tokens

Hi,
added an ability to override some parser's tokens behavior. It may be useful, when generating a html for blog engines etc. I had the case when it expected for code blocks:
```html

var a = 10
```

With the hook, this is trivial to implement:
```javascript
marked(markdown, {
hooks: {
code: function(token) {

return '\n'
+ token.text
+ '\n'
;
}
}
});
```

In case you think this feature is not desired, simply close this pull request.

Cheers, Alex