Permalink
Browse files

Merge pull request #19 from node-migrator-bot/clean

The bot fixed some calls to "sys" for me!
  • Loading branch information...
2 parents c16fb52 + 2df20b2 commit 31799022d2868f7724468d51d59473420b24908c @jmendeth jmendeth committed Jun 24, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.mkd
View
@@ -44,11 +44,11 @@ the markdown code to parse, and a callback to handle the result:
```javascript
var rs = require('robotskirt')
- , sys = require('sys');
+ , util = require('util');
var renderer = new rs.HtmlRenderer();
rs.markdown(renderer, '# Hello World', function (html) {
- sys.puts(html);
+ util.puts(html);
});
// '<h1>Hello World</h1>\n'
```
@@ -58,12 +58,12 @@ For example, to read and parse a Markdown file:
```javascript
var rs = require('robotskirt')
, fs = require('fs')
- , sys = require('sys');
+ , util = require('util');
var renderer = new rs.HtmlRenderer();
fs.readFile('README.mkd', function (err, data) {
rs.markdown(renderer, data, function (html) {
- sys.puts(html);
+ util.puts(html);
});
});
```
@@ -74,13 +74,13 @@ You can pass some flags to Sundown by passing them as an (optional) last argumen
```javascript
var rs = require('robotskirt')
- , sys = require('sys');
+ , util = require('util');
var renderer = new rs.HtmlRenderer()
, flags = rs.flags.EXT_FENCED_CODE + rs.flags.EXT_AUTOLINK;
rs.markdown(renderer, 'Wow, this becomes http://autolink.ed !', function (html) {
- sys.puts(html);
+ util.puts(html);
}, flags);
```

0 comments on commit 3179902

Please sign in to comment.