tests for single line processing

master
Matt Huntington 10 years ago
parent 4270a91c3c
commit 0afc7ebb3f

@ -0,0 +1,5 @@
var converter = require('../index.js');
var fs = require('fs');
fs.readFile('single_lines.txt', 'utf8',function(err, data){
console.log(converter(data));
});

@ -0,0 +1,7 @@
if the first line contains a line break after it, it is rendered as a header
sub headings are single lines that have a line break before and after them, but are not the first line
This single line contains a period. Therefore, it is rendered as a paragraph. It also contains a link to http://www.google.com, so that is rendered appropriately.
sub heading 2
Loading…
Cancel
Save