Skip to content

Commit e534a7d

Browse files
committed
only set linkify to true if undefined
1 parent e8f2d43 commit e534a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ toc.insert = require('./lib/insert');
4545
function generate(options) {
4646
var opts = utils.merge({firsth1: true, maxdepth: 6}, options);
4747
var stripFirst = opts.firsth1 === false;
48-
if (opts.linkify !== false) opts.linkify = true;
48+
if (typeof opts.linkify === 'undefined') opts.linkify = true;
4949

5050
return function(md) {
5151
md.renderer.render = function(tokens) {

0 commit comments

Comments
 (0)