Skip to content

Commit

Permalink
Refactor(es2015): Remove namespace object
Browse files Browse the repository at this point in the history
  • Loading branch information
segayuu committed May 18, 2019
1 parent c9c682e commit 2ec5f98
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

const marked = require('marked');
const stripIndent = require('strip-indent');
const util = require('hexo-util');

const highlight = util.highlight;
const stripHTML = util.stripHTML;
const { stripHTML, highlight, slugize } = require('hexo-util');
const MarkedRenderer = marked.Renderer;

function Renderer() {
Expand Down Expand Up @@ -33,7 +30,7 @@ Renderer.prototype.heading = function(text, level) {
};

function anchorId(str, transformOption) {
return util.slugize(str.trim(), {transform: transformOption});
return slugize(str.trim(), {transform: transformOption});
}

// Support AutoLink option
Expand Down

0 comments on commit 2ec5f98

Please sign in to comment.