diff --git a/tests/lists.js b/tests/lists.js new file mode 100644 index 0000000..7b7a11c --- /dev/null +++ b/tests/lists.js @@ -0,0 +1,5 @@ +var converter = require('../index.js'); +var fs = require('fs'); +fs.readFile('lists.txt', 'utf8',function(err, data){ + console.log(converter(data)); +}); diff --git a/tests/lists.txt b/tests/lists.txt new file mode 100644 index 0000000..94477fe --- /dev/null +++ b/tests/lists.txt @@ -0,0 +1,9 @@ +lines that either directly preceed another line of text + or directly succeed another line of text + are rendered as lists + they can also contain links http://www.google.com + you can only forward indent + one tab + at a + time + but you can back indent as much as you'd like