Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Examples replace test

  • Loading branch information...
commit d1e65ab9e34dd5640c847811e92256875abdce8e 1 parent 3e51ab8
TJ Holowaychuk authored
19 examples/example.md
View
@@ -0,0 +1,19 @@
+
+# Title
+
+Just some random paragraph stuff here.
+
+## Lists
+
+ - oh sweet
+ - some list
+ - items
+ 1. booyah! √
+ 2. awesome √
+
+## Code
+
+Even some code:
+
+ foobar!
+ bazz!
11 examples/run.js
View
@@ -0,0 +1,11 @@
+
+/**
+ * Module dependencies.
+ */
+
+var md = require('../build/default/markdown')
+ , fs = require('fs');
+
+fs.readFile(__dirname + '/example.md', 'utf8', function(err, str){
+ console.log(md.parse(str));
+});
12 test.js
View
@@ -1,12 +0,0 @@
-
-var assert = require('assert')
- , fs = require('fs')
- , markdown = require('./build/default/markdown');
-
-assert.ok(markdown.version.match(/^\d+\.\d+\.\d+$/), 'version is improperly formatted')
-assert.equal(
- fs.readFileSync('test/test.html', 'utf8')
- , markdown.parse(fs.readFileSync('test/test.md', 'utf8'))
- );
-
-console.log('all good');
8 test/test.html
View
@@ -1,8 +0,0 @@
-<h1>Welcome</h1>
-
-<h2>Articles</h2>
-
-<ul>
-<li>a</li>
-<li>b</li>
-</ul>
7 test/test.md
View
@@ -1,7 +0,0 @@
-
-# Welcome
-
-## Articles
-
-* a
-* b
Please sign in to comment.
Something went wrong with that request. Please try again.