1.8.0
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]
- url in srcset attribute is now encoded using