Skip to content

Commit

Permalink
test: avoid hardcoded expected result
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Nov 8, 2019
1 parent 07b44e1 commit 9d1754d
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 2,468 deletions.
3 changes: 2 additions & 1 deletion lib/renderer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const { inherits } = require('util');
const marked = require('marked');
const stripIndent = require('strip-indent');
const { stripHTML, highlight, slugize, encodeURL, url_for } = require('hexo-util');
Expand All @@ -12,7 +13,7 @@ function Renderer() {
this._headingId = {};
}

require('util').inherits(Renderer, MarkedRenderer);
inherits(Renderer, MarkedRenderer);

// Add id attribute to headings
Renderer.prototype.heading = function(text, level) {
Expand Down

0 comments on commit 9d1754d

Please sign in to comment.