Skip to content

Releases: hexojs/hexo-util

v3.3.0

31 Mar 13:31
d636206
Compare
Choose a tag to compare

New Features

  • feat(scripts): use hljs internal method to get aliases by @uiolee in #394
  • feat(highlight): add an option to switch stripIndent by @uiolee in #398

Fixes

Refactors

  • refactor: migrate to ts and remove chai-as-promised by @D-Sketon in #399

Dependencies

Miscs

  • chore: update repository key from a string to an object in package.json by @yoshinorin in #402

Full Changelog: v3.2.0...v3.3.0

v3.2.0

14 Jan 05:14
738e6e8
Compare
Choose a tag to compare

New Features

Fixed

Test

Dependencies

  • chore(dependabot): ignore @types/node update and reduce PR from dependabot by @yoshinorin in #343

Chore

  • chore(SECURITY): Create SECURITY.md by @uiolee in #383
  • chore(deps-dev): remove @ts/eslint-plugin, parser by @uiolee in #387

Full Changelog: v3.1.0...v3.2.0

v3.1.0

10 Jul 15:12
022c4d7
Compare
Choose a tag to compare

Fixed

Performance

  • perf: lazyload highlight.js & prismjs by @SukkaW in #297

Refactor

Dependencies

Misc

New Contributors

Full Changelog

v3.0.1

16 Nov 14:28
2e28b0e
Compare
Choose a tag to compare

Fixes

Full Changelog: v3.0.0...v3.0.1

v3.0.0

13 Nov 12:53
5c4ecd1
Compare
Choose a tag to compare

Breaking Changes

Notable Changes

Refactors

  • refactor(hash): remove the export of HashStream by @liby in #285

Dependencies

Docs

CI/CD

New Contributors

  • @liby made their first contribution in #285

Full Changelog: 2.7.0...v3.0.0

v2.7.0

08 Aug 16:00
b7b94f6
Compare
Choose a tag to compare

Features

Dependencies

New Contributors

Full Changelog: 2.6.1...2.7.0

2.6.1

02 May 08:36
abb2f9e
Compare
Choose a tag to compare

Fixes

  • refactor(prism): support prismjs alias by @SukkaW in #274

Refactor

Full Changelog: 2.6.0...2.6.1

2.6.0

04 Feb 13:06
a1c560b
Compare
Choose a tag to compare

Breaking Changes

  • stripHTML should be more strict with non string by @tomap in #265

New features

  • feat(toc_obj): Support unnumbered headings by @Cerallin in #269

Fixes

Refactors

  • refactor(cache): remove Object.fromEntries ponyfill by @SukkaW in #261

Test

  • test: fix generate coverage report & test failure when not supported language with Prismjs by @yoshinorin in #271

Dependencies

Misc

New Contributors

Full Changelog: 2.5.0...2.6.0

v2.5.0

05 May 09:55
f85eab4
Compare
Choose a tag to compare

Refactors

  • refactor(strip_html): remove striptags deps @SukkaW [#232]

Dependencies

Misc

2.4.0

21 Aug 04:19
19315b8
Compare
Choose a tag to compare

Breaking change

  • fix(highlight): use <div> when wrap is disabled @curbengh [#229]
    • when wrap is disabled:
    # _config.yml
    highlight:
      wrap: false # defaults to true
    • previously, caption is rendered as:
    <pre>
    <figcaption>caption</figcaption>
    <code></code>
    </pre>
    • it's now rendered as:
    <pre>
    <div class="caption">caption</div>
    <code></code>
    </pre>
    • you can style it by:
    pre div.caption {
      font-size: 0.9em;
      color: #888;
    }
    
    pre div.caption a {
      float: right;
    }

Feature

  • feat(prism): caption @curbengh [#227]
    • caption is rendered as:
    <pre>
    <div class="caption">caption</div>
    <code></code>
    </pre>
    • you can style it by:
    pre div.caption {
      font-size: 0.9em;
      color: #888;
    }
    
    pre div.caption a {
      float: right;
    }