Skip to content
Browse files

Remove example.js in favour of examples/, bin/, docs and README

  • Loading branch information...
1 parent 216c48e commit 8d95af265c4ed8da2c7503d03bfdc131dac193f4 @jmendeth jmendeth committed Sep 6, 2012
Showing with 0 additions and 36 deletions.
  1. +0 −36 example.js
View
36 example.js
@@ -1,36 +0,0 @@
-var rs = require('./index.js');
-var fs = require('fs');
-
-// Simple examples
-rs.toHtml("# async", function (html) {
- process.stdout.write(html);
-});
-
-process.stdout.write(rs.toHtmlSync("# sync markdown parsing.."));
-
-//Open a file and parse it
-fs.readFile('README.mkd', function (err, data) {
- rs.toHtml(data.toString(), function (html) {
- process.stdout.write(html);
- });
-});
-
-// Reuse a renderer
-var renderer = new rs.HtmlRenderer();
-
-rs.markdown(renderer, "*this is bold* http://www.benmills.org", function (html) {
- console.log(html.toString());
-});
-
-// Use a flag
-
-rs.markdown(renderer, "*this is bold* http://www.benmills.org", function (html) {
- console.log(html.toString());
-}, [rs.flags.EXT_AUTOLINK]);
-
-rs.toHtml("*this is bold* http://www.benmills.org", function (html) {
- console.log(html.toString());
-}, [rs.flags.EXT_AUTOLINK]);
-
-output = rs.toHtmlSync("*this is bold* http://www.benmills.org", [rs.flags.EXT_AUTOLINK]);
-console.log(output.toString());

0 comments on commit 8d95af2

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