visionmedia/dox — pull request #37 by kainosnoema (2011-10-10 17:39:52+00:00)
Title: Allow for colons in lines not intended as headers

Sometimes it's important include URLs or literal JSON syntax containing colon characters. Currently those lines are converted to Markdown headers, even if the colon is in the middle of the line. Example:

```` js
/**
* Example comment
*
* {
* one: {value: 1}
* }
*/
````

is converted to:

```` md
Example comment

{
## one {value: 1}
}

````

This commit fixes that, only converting lines to headers when the colon is at the end of the line. All tests are passing.