Skip to content

Commit

Permalink
refactor(renderer): use hexo-util's escapeHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored Nov 15, 2021
1 parent d7ca8a0 commit 01aa784
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ const { marked } = require('marked');
let JSDOM,
createDOMPurify;

const { escape } = require('marked/src/helpers');
const { encodeURL, slugize, stripHTML, url_for, isExternalLink } = require('hexo-util');
const { encodeURL, slugize, stripHTML, url_for, isExternalLink, escapeHTML: escape } = require('hexo-util');
const MarkedRenderer = marked.Renderer;
const MarkedTokenizer = marked.Tokenizer;
const { basename, dirname, extname, join } = require('path').posix;
Expand Down

0 comments on commit 01aa784

Please sign in to comment.