Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Mar 11, 2023
1 parent 5d6ab84 commit ca8c642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/hexo/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class Post {
data.content = cacheObj.escapeAllSwigTags(data.content);
}

const options = data.markdown || {};
const options: { highlight?: boolean; } = data.markdown || {};
if (!config.syntax_highlighter) options.highlight = null;

ctx.log.debug('Rendering post: %s', magenta(source));
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
"bluebird": "^3.7.2",
"hexo-cli": "^4.3.0",
"hexo-front-matter": "^4.0.0",
"hexo-fs": "^4.0.0",
"hexo-i18n": "^2.0.0",
"hexo-log": "^4.0.1",
"hexo-fs": "^4.1.1",
"hexo-i18n": "^1.0.0",
"hexo-log": "^3.2.0",
"hexo-util": "^3.0.1",
"js-yaml": "^4.1.0",
"js-yaml-js-types": "^1.0.0",
Expand Down

0 comments on commit ca8c642

Please sign in to comment.