thomasdavis/kaleistyleguide — pull request #24 by johnhunter (2013-02-24 20:54:03+00:00)
Title: Upgrade to marked v0.2.8 in order to support markdown tables

Thanks for putting together such a great project and taking the time to share it.

I want to use tables in my style-guide documentation, which the current version of marked.js supports. Upgrading marked.js required the following:
* an update to marked.js v.0.2.8
* additional configuration that allows setting markdown options
* changes to the comment parsing to support changes to marked.js lexer / parse methods

The changes made to comment parsing were required because of a change to marked.js that broke kalei comment processing.

The token array returned by `marked.lexer` now includes a `links` property which is a hash of definition links defined within the markdown block. The `marked.parser` expects the `src` argument to be a token array with a `links` property. Since we process each token in the token list separately it is necessary to append a reference to the `links` property to each token item.