Browse files

Examples replace test

  • Loading branch information...
1 parent 3e51ab8 commit d1e65ab9e34dd5640c847811e92256875abdce8e @tj tj committed Sep 21, 2010
Showing with 30 additions and 27 deletions.
  1. +19 −0 examples/example.md
  2. +11 −0 examples/run.js
  3. +0 −12 test.js
  4. +0 −8 test/test.html
  5. +0 −7 test/test.md
View
19 examples/example.md
@@ -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!
View
11 examples/run.js
@@ -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));
+});
View
12 test.js
@@ -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');
View
8 test/test.html
@@ -1,8 +0,0 @@
-<h1>Welcome</h1>
-
-<h2>Articles</h2>
-
-<ul>
-<li>a</li>
-<li>b</li>
-</ul>
View
7 test/test.md
@@ -1,7 +0,0 @@
-
-# Welcome
-
-## Articles
-
-* a
-* b

0 comments on commit d1e65ab

Please sign in to comment.