Browse Source

Fixed linkify option

pull/14/head
Vitaly Puzrin 10 years ago
parent
commit
105a06ceca
  1. 2
      benchmark/implementations/current/index.js
  2. 2
      lib/typographer.js

2
benchmark/implementations/current/index.js

@ -3,7 +3,7 @@
var Remarkable = require('../../../'); var Remarkable = require('../../../');
var md = new Remarkable({ var md = new Remarkable({
html: true, html: true,
linkify: true, linkify: false,
typographer: true typographer: true
}); });

2
lib/typographer.js

@ -45,8 +45,6 @@ Typographer.prototype.set = function (options) {
Typographer.prototype.process = function (state) { Typographer.prototype.process = function (state) {
var i, l, rules; var i, l, rules;
if (!state.options.typographer) { return; }
rules = this._rules; rules = this._rules;
for (i = 0, l = rules.length; i < l; i++) { for (i = 0, l = rules.length; i < l; i++) {

Loading…
Cancel
Save