Skip to content

Commit

Permalink
Removed querystring based on information at mhart/aws4#46
Browse files Browse the repository at this point in the history
  • Loading branch information
flamusdiu committed Nov 5, 2017
1 parent 1fb069f commit aff11ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

var utils = require('./lib/utils');
var querystring = require('querystring');
//var querystring = require('querystring');

/**
* expose `toc`
Expand Down Expand Up @@ -187,7 +187,8 @@ function linkify(tok, options) {
opts.num = tok.seen;
var text = titleize(tok.content, opts);
var slug = utils.slugify(tok.content, opts);
slug = querystring.escape(slug);
//slug = querystring.escape(slug);
slug = encodeURIComponent (slug);
if (opts && typeof opts.linkify === 'function') {
return opts.linkify(tok, text, slug, opts);
}
Expand Down

0 comments on commit aff11ff

Please sign in to comment.