Skip to content

1.6.0

Choose a tag to compare

@curbengh curbengh released this 27 Nov 11:13
· 205 commits to master since this release
959b3fe

Breaking change

  • isExternalLink no longer require bind(hexo) (#140)
    • Pass the site config as parameter
    isExternalLink('https://example.com', hexo.config.url);
  • url_for() & full_url_for() no longer process folder name with semicolon (#130)
    • This is necessary to avoid processing data urls (e.g. mailto: & data:)

Fix

  • Fix performance regression introduced in 1.5.0 (#125, #124, #128)
  • Remove unnecessary new line <br> element from codeblock (#132)
  • Handle underscore sign in permalink() (#139)
  • Applies pretty_url.trailing_index option to url_for() and full_url_for to remove the trailing index.html from links. (#134)
  • Replace node-html-entities with escapeHTML() in highlight() (#129)
    • escapeHTML() escapes more characters compared to node-html-entities.
    • This also means more unsafe characters are now escaped in codeblock
  • Escape equal = sign to &#x3D; in escapeHTML() (#131)
    • Equal sign can be misused to create another attribute in html, this fix prevents that