Merge pull request #568 from heath/fix/language-identifiers

remove whitespace, add js language identifiers
This commit is contained in:
Manuel Aráoz 2014-11-27 11:04:39 -03:00
commit 38b69f4bfc
2 changed files with 1275 additions and 1086 deletions

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ var format = es.through(
if (file.isStream()) return this.emit('error', new Error('Streaming not supported'));
//add indentation
var contents = "\t" + file.contents.toString("utf8").split("\n").join("\n\t");
var contents = "\n```js\n\n" + file.contents.toString("utf8").split("\n").join("\n") + "```\n";
//add header
contents = ["#", path.basename(file.path), "\n", contents].join("");
file.contents = new Buffer(contents, "utf8");