Pass options to Marked?
Hey all,
I'm running into an issue where I have to pass { highlight : null } into Marked from docco. Is there a way to do this easily without having to customize the docco code?
This is related to DavidSouther/grunt-docco#34.
Result of my initial investigation:
This could have something to do with docco's reference of some highlight.js internals. The dependency is of highlight.js for docco is
>= 7.3.0which would mean8.0.0which breaks some of these cases could be used bynpm. Docco expectshighlightjs.LANGUAGESto exist but, in v8, it doesn't.You should probably raise a bug with docco or pull request to have this dependency changed to
~7.3.0which would include7.5.0but not8.0.0. I'm not saying this alone will solve this issue but it could be it.Could you check the
package.jsonfile ofhighlight.jsdependency within thedoccodirectory undernode_modulesto see what version you have?
This is the most likely due to today's release of highlight.js v8 which changes the API. LANGUAGES no longer exists and is replaced by a getLanguage function on the API.
I believe that this will break all new installations of docco.
Fix included in #258
@streetlight Is this still an issue for you or shall I close it?