Skip to content

1.8.0

Compare
Choose a tag to compare
@curbengh curbengh released this 19 Dec 10:52
· 161 commits to master since this release
a0c424f

Features

  • tocObj() to convert headings (e.g. <h1>) in html into JSON format [#137]
    • Enables headings to be programmatically parsed and manipulated.
    • Created mainly to be used by the toc() helper (ref hexojs/hexo#3850).
  • Cache() class utility [#162]
    • Mainly to cache user config to avoid unnecessary parsing
    • We have started utilizing caching on many utilities and resulted in up to 20% better performance.

Fixes

  • In htmlTag(), url in <meta> tags (in Facebook Open Graph and Twitter Card) are now percent-encoded, instead of html-escaped. [#159]
    • url in srcset attribute is now encoded using encodeURL() which supports more url types, instead of encodeURI. [#160]