Merge pull request #568 from heath/fix/language-identifiers
remove whitespace, add js language identifiers
This commit is contained in:
commit
38b69f4bfc
2359
examples.md
2359
examples.md
File diff suppressed because it is too large
Load Diff
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user