metalsmith-markdown
Advanced tools
Comparing version 0.2.0 to 0.2.1
0.2.1 - February 6, 2013 | ||
------------------------ | ||
* add debug statements | ||
0.2.0 - February 5, 2013 | ||
@@ -3,0 +7,0 @@ ------------------------ |
var basename = require('path').basename; | ||
var debug = require('debug')('metalsmith-markdown'); | ||
var dirname = require('path').dirname; | ||
@@ -28,2 +29,3 @@ var extname = require('path').extname; | ||
Object.keys(files).forEach(function(file){ | ||
debug('checking file: %s', file); | ||
if (!markdown(file)) return; | ||
@@ -35,5 +37,5 @@ var data = files[file]; | ||
debug('converting file: %s', file); | ||
var str = marked(data.contents.toString(), options); | ||
data.contents = new Buffer(str); | ||
keys.forEach(function(key) { | ||
@@ -40,0 +42,0 @@ data[key] = marked(data[key], options); |
@@ -5,7 +5,8 @@ { | ||
"repository": "git://github.com/segmentio/metalsmith-markdown.git", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"dependencies": { | ||
"marked": "~0.3.1" | ||
"marked": "~0.3.1", | ||
"debug": "~0.7.4" | ||
}, | ||
@@ -12,0 +13,0 @@ "devDependencies": { |
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
4301
75
2
+ Addeddebug@~0.7.4
+ Addeddebug@0.7.4(transitive)