Skip to content
Browse files

updated markdown script

  • Loading branch information...
1 parent 6997f83 commit b843b19e12f208257aa94e587ce5967751fda3e2 @dethe committed Jul 4, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/markdown
View
5 lib/markdown
@@ -9,8 +9,7 @@ var renderer = new rs.HtmlRenderer();
var files = process.argv.slice(2);
files.forEach(function(filename){
fs.readFile('readme.md', 'utf8', function (err, data) {
- rs.markdown(renderer, data, function (html) {
- util.puts(html);
- }, flags);
+ var parser = new rs.Markdown(renderer, flags);
+ util.puts(parser.render(data));
})
});

0 comments on commit b843b19

Please sign in to comment.
Something went wrong with that request. Please try again.