Comparing version 0.3.4 to 0.4.0
{ | ||
"name" : "mdoc", | ||
"description" : "Markdown based documentation generator", | ||
"keywords" : ["markdown", "documentation", "docs", "generator"], | ||
"homepage" : "https://github.com/millermedeiros/mdoc.git", | ||
"version" : "0.3.4", | ||
"author" : { | ||
"name" : "Miller Medeiros", | ||
"url" : "http://blog.millermedeiros.com/" | ||
}, | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "https://github.com/millermedeiros/mdoc.git" | ||
}, | ||
"main" : "./src/js/main.js", | ||
"bugs" : { | ||
"url" : "https://github.com/millermedeiros/mdoc/issues" | ||
}, | ||
"licenses" : [ | ||
{ | ||
"type" : "MIT", | ||
"url" : "http://www.opensource.org/licenses/mit-license.php" | ||
} | ||
], | ||
"dependencies" : { | ||
"wrench" : ">= 1.3.2", | ||
"handlebars" : ">= 1.0.1", | ||
"commander" : ">= 0.4.0" | ||
}, | ||
"bin" : { | ||
"mdoc" : "./bin/mdoc" | ||
"name": "mdoc", | ||
"description": "Markdown based documentation generator", | ||
"keywords": [ | ||
"markdown", | ||
"documentation", | ||
"docs", | ||
"generator" | ||
], | ||
"homepage": "https://github.com/millermedeiros/mdoc.git", | ||
"version": "0.4.0", | ||
"author": { | ||
"name": "Miller Medeiros", | ||
"url": "http://blog.millermedeiros.com/" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/millermedeiros/mdoc.git" | ||
}, | ||
"main": "./src/js/main.js", | ||
"bugs": { | ||
"url": "https://github.com/millermedeiros/mdoc/issues" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/mit-license.php" | ||
} | ||
], | ||
"dependencies": { | ||
"wrench": ">= 1.3.2", | ||
"handlebars": ">= 1.0.1", | ||
"commander": ">= 0.4.0" | ||
}, | ||
"bin": { | ||
"mdoc": "./bin/mdoc" | ||
} | ||
} |
@@ -27,3 +27,3 @@ | ||
function wrapCode(str, p1, p2){ | ||
return p1? '<pre class="brush:'+ p1 +'">\n'+ p2 +'</pre>' : '<pre>\n'+ p2 +'</pre>'; | ||
return p1? '<pre class="brush:'+p1+'">'+p2+'</pre>' : '<pre>'+p2+'</pre>'; | ||
} | ||
@@ -58,3 +58,3 @@ | ||
href : matchName[1], | ||
title : matchTitle[1], | ||
title : matchTitle[1].replace(/\\/g, ''), | ||
name : (matchName.slice(1,4).join('')), | ||
@@ -61,0 +61,0 @@ description : getDescription(mdown, rH.lastIndex) |
@@ -33,2 +33,9 @@ | ||
var key, helpers = config.hbHelpers; | ||
for (key in helpers){ | ||
if (helpers.hasOwnProperty(key)){ | ||
handlebars.registerHelper(key, helpers[key]); | ||
} | ||
} | ||
handlebars.registerPartial('header', compileTemplate('header')); | ||
@@ -35,0 +42,0 @@ handlebars.registerPartial('footer', compileTemplate('footer')); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
282223
49
4390
207
0