|
@ -6,10 +6,14 @@ var fs = require('fs'); |
|
|
var path = require('path'); |
|
|
var path = require('path'); |
|
|
var Remarkable = require('../'); |
|
|
var Remarkable = require('../'); |
|
|
|
|
|
|
|
|
var md = new Remarkable('commonmark'); |
|
|
var md = new Remarkable({ |
|
|
|
|
|
html: true, |
|
|
|
|
|
linkify: true, |
|
|
|
|
|
typographer: true |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
var data = fs.readFileSync(path.join(__dirname, '/samples/lorem1.txt'), 'utf8'); |
|
|
var data = fs.readFileSync(path.join(__dirname, '/samples/lorem1.txt'), 'utf8'); |
|
|
|
|
|
|
|
|
for (var i = 0; i < 20000; i++) { |
|
|
for (var i = 0; i < 200; i++) { |
|
|
md.render(data); |
|
|
md.render(data); |
|
|
} |
|
|
} |
|
|