Releases: hexojs/hexo-util
Releases · hexojs/hexo-util
1.6.1
29 Nov 00:29
Compare
Sorry, something went wrong.
No results found
1.6.0
27 Nov 11:13
Compare
Sorry, something went wrong.
No results found
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 = in escapeHTML() (#131 )
Equal sign can be misused to create another attribute in html, this fix prevents that
1.5.0
10 Nov 02:54
Compare
Sorry, something went wrong.
No results found
Breaking change
IDN is no longer punycoded in encodeURL() . IDN, regardless in punycode or unicode, is now always output in unicode. This also affect decodeURL() (#116 )
Feature
Fixes
1.4.0
09 Oct 00:44
Compare
Sorry, something went wrong.
No results found
Feature
feat: add unescapeHTML() (#104 )
feat(htmlTag): support async/defer/boolean attribute (#106 )
Fix
fix(escapeHTML): avoid double escape (#104 )
1.3.1
27 Sep 06:05
Compare
Sorry, something went wrong.
No results found
Fix
fix(encode_url): skip encode non-urls (#102 )
1.3.0
23 Sep 03:12
Compare
Sorry, something went wrong.
No results found
Breaking change
fix(html_tag): escape html and encode url by default #93
insert false to the 4th argument to disable escape
e.g. htmlTag('a', {href: 'http://foo.com/'}, '<b>bold</b>', false)
Feature
Fix
fix(encodeURL): encode path once only #92
fix(html_tag): encode url value of url-related attributes and skip escape/encode <style> #96
fix(html_tag): encode url() in style tag #101
1.2.0
15 Sep 11:32
Compare
Sorry, something went wrong.
No results found
Feature
add gravatar() #81
add url_for() & relative_url() #82
add full_url_for() #84
Fix
fix(encodeURL): support hash/anchor, auth and port number #85
1.1.0
08 Sep 02:19
Compare
Sorry, something went wrong.
No results found
Feature
feat: add encodeURL() (#77 )
1.0.1
29 Aug 08:48
Compare
Sorry, something went wrong.
No results found
Features
Add test for windows(#71 )
Sublanguages highlight (#37 )
Fixes
Move travis-ci from .org to .com(#74 )
Export Color function(#75 )
Refactor
1.0.0
19 Aug 07:16
Compare
Sorry, something went wrong.
No results found
Breaking changes
Drop Node 6 compatibility (#61 )
Deprecate hashStream (#45 ), use createSha1Hash()
Features
Add Color class from tagcloud hexo helper (#58 )
Allows empty attributes in html tag helper (#36 )
Fixes
fs.write instead of stdout (#69 )
prevent firstLine being parsed as a string (#67 )
Fix the part where the public API createSha1Hash() was not exported. (#47 )
Refactor