Skip to content

Commit

Permalink
Use js-yaml to parse YAML #11
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Dec 13, 2012
1 parent a5adae0 commit 6672e55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/renderer/yaml.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var yaml = require('yamljs'),
var yaml = require('js-yaml'),
extend = require('../extend');

var yml = function(file, content){
return yaml.parse(content);
return yaml.load(content);
};

extend.renderer.register('yml', 'json', yml, true);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"moment": "*",
"cli-color": "*",
"highlight.js": "*",
"yamljs": "*",
"js-yaml": "*",
"underscore": "*",
"swig": "*"
}
Expand Down

0 comments on commit 6672e55

Please sign in to comment.