From 01008da830aa683a2cb00a45d378004eaa2e5284 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Thu, 16 Oct 2014 09:23:49 +0400 Subject: [PATCH] Added benchmarks for different remarkable modes --- benchmark/implementations/current-commonmark/index.js | 8 ++++++++ benchmark/implementations/current/index.js | 9 ++++----- 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 benchmark/implementations/current-commonmark/index.js diff --git a/benchmark/implementations/current-commonmark/index.js b/benchmark/implementations/current-commonmark/index.js new file mode 100644 index 0000000..c4b0e5c --- /dev/null +++ b/benchmark/implementations/current-commonmark/index.js @@ -0,0 +1,8 @@ +'use strict' + +var Remarkable = require('../../../'); +var md = new Remarkable('commonmark'); + +exports.run = function(data) { + return md.render(data); +} diff --git a/benchmark/implementations/current/index.js b/benchmark/implementations/current/index.js index 4927151..9410f70 100644 --- a/benchmark/implementations/current/index.js +++ b/benchmark/implementations/current/index.js @@ -1,12 +1,11 @@ 'use strict' var Remarkable = require('../../../'); -var md = new Remarkable('commonmark' /*{ +var md = new Remarkable({ html: true, - xhtml: true, - breaks: false, - langPrefix: 'language-' -}*/); + linkify: true, + typographer: true +}); exports.run = function(data) { return md.render(data);