Hexo v5.2.0 Release Notes

Release Date: 2020-09-17 // over 3 years ago
  • ๐Ÿ”„ Changes

    • perf(external_link): faster regexp @SukkaW [#4536]
      • prioritise http(s):// over //
    • ๐Ÿ‘ feat: support 'disableNunjucks' in front-matter @curbengh [#4518]

      • Enable this option to disable tag plugin
      • Setting this option in front-matter will override the same option set by the renderer (e.g. hexo-renderer-marked)

      ---title: foodate: 2020-01-02 03:04:05disableNunjucks: true|false---

    • ๐Ÿ›  fix: avoid escaping front-matter if unnecessary @curbengh [#4522]

      • using variable (e.g. {{ title }}) with special characters no longer result in double-quote wrap
    • ๐Ÿ›  fix: validate value of config.url @curbengh [#4520]

      • config.url should starts with "http://" or "https://"
    • ๐Ÿ›  fix(router): convert string to buffer in route stream @ppoffice [#4517]

      • fix crash in hexo generate --bail
    • ๐Ÿ›  fix(disableNunjucks): query both async and sync versions of renderer @curbengh [#4498]

      • disableNunjucks option should now works reliably with synchronous renderer
    • ๐Ÿ”Œ feat(load_plugin): ignore pkg name endswith theme name @SukkaW [#4497]

      • An initial effort to support scoped package


    • ๐Ÿšš chore/ci: move benchmark & profiling to Actions @SukkaW [#4525] [#4514] [#4335]
      • Travis is now completely replaced by Actions (in this repo)
    • chore: use example.com for example domain @YoshinoriN [#4512]

Previous changes from v5.1.1

  • ๐Ÿ”„ Changes

    • ๐Ÿ›  fix(filter/highlight): avoid escaping curly bracket when highlight & prismjs disabled @curbengh [#4489]

      • When both highlight.js and prismjs are disabled:

      _config.ymlhighlight: enable: falseprismjsenable: false

      • there was an issue that curly brackets { } are escaped { } mistakenly in the backtick_code_block.js filter. The fix is to avoid running that filter when code highlight is disabled.
      • Some users disable Hexo's default code highlight as they prefer to their own method.