From 48193133d6a12a29f51d8c1163df0bb0da77b2ec Mon Sep 17 00:00:00 2001 From: YoshinoriN Date: Fri, 13 Mar 2020 22:46:59 +0900 Subject: [PATCH] docs(news): hexo-renderer-markdown-it 4.1.0 & hexo-util 1.9.0 released (#1345) * chore(news): hexo-renderer-markdown-it 4.1.0 & hexo-util 1.9.0 released * news: remove unneeded dependabot credit * chore(news): add an explanation for hexo-util prism highlight support Co-authored-by: MDLeom <43627182+curbengh@users.noreply.github.com> --- ...kdown-it-4-1-0-hexo-util-1-9-0-released.md | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 source/_posts/2020-03-08-hexo-renderer-markdown-it-4-1-0-hexo-util-1-9-0-released.md diff --git a/source/_posts/2020-03-08-hexo-renderer-markdown-it-4-1-0-hexo-util-1-9-0-released.md b/source/_posts/2020-03-08-hexo-renderer-markdown-it-4-1-0-hexo-util-1-9-0-released.md new file mode 100644 index 0000000000..9f928e7471 --- /dev/null +++ b/source/_posts/2020-03-08-hexo-renderer-markdown-it-4-1-0-hexo-util-1-9-0-released.md @@ -0,0 +1,69 @@ +--- +title: hexo-renderer-markdown-it 4.1.0 & hexo-util 1.9.0 released +--- + +## hexo-renderer-markdown-it 4.1.0 + +### Feature +- `permalinkSide` option [@curbengh](https://github.com/curbengh) [#105]. + +By default, when `permalink` option is enabled, the permalink symbol is prepended before each heading. If you prefer to append to the end of each heading: + +``` yml +markdown: + anchors: + permalink: true + permalinkSide: 'right' +``` + +### Housekeeping +- Remove unneeded `sluggo` dependency [@curbengh](https://github.com/curbengh) [#99]. + - It has been replaced by hexo-util's slugize [@curbengh](https://github.com/curbengh) [#95]. +- Update nyc from 14.1.1 to 15.0.0 [#100] + +[#105]: https://github.com/hexojs/hexo-renderer-markdown-it/pull/105 +[#99]: https://github.com/hexojs/hexo-renderer-markdown-it/pull/99 +[#95]: https://github.com/hexojs/hexo-renderer-markdown-it/pull/95 +[#100]: https://github.com/hexojs/hexo-renderer-markdown-it/pull/100 + +--- + +## hexo-util 1.9.0 + +### Features + +- feat(prism): add data-language attribute [@SukkaW](https://github.com/SukkaW) [#177] +- feat(prism): add mark & firstLine option support [@SukkaW](https://github.com/SukkaW) [#172] +- feat: bring up prism highlight support [@SukkaW](https://github.com/SukkaW) [#168] + - Laying the groundwork for the planned support of [prism](https://prismjs.com/) highlight library in the upcoming Hexo v5, in addition to the current [highlight.js](https://highlightjs.org/) library. + +### Fixes + +- fix(is_external_link): handle invalid url [@SukkaW](https://github.com/SukkaW) [#183] +- fix(prism): add strip_indent support [@SukkaW](https://github.com/SukkaW) [#184] +- fix(tocObj): skip permalink symbol [@curbengh](https://github.com/curbengh) [#175] +- Fix highlighting when hljs=true [@ppwwyyxx](https://github.com/ppwwyyxx) [#171] +- htmlTag - toString() before match() for scalar values. [@KentarouTakeda](https://github.com/KentarouTakeda) [#176] + +### Refactor + +- refactor: optimize cache [@SukkaW](https://github.com/SukkaW) [#170] +- refactor(highlight): add strip-indent [@SukkaW](https://github.com/SukkaW) [#169] +- refactor(toc_obj): simplify the code [@SukkaW](https://github.com/SukkaW) [#181] + +### Dependencies + +- chore(deps-dev): bump mocha from 6.2.2 to 7.0.0 [#173] + +[#177]: https://github.com/hexojs/hexo-util/pull/177 +[#172]: https://github.com/hexojs/hexo-util/pull/172 +[#168]: https://github.com/hexojs/hexo-util/pull/168 +[#183]: https://github.com/hexojs/hexo-util/pull/183 +[#184]: https://github.com/hexojs/hexo-util/pull/184 +[#175]: https://github.com/hexojs/hexo-util/pull/175 +[#171]: https://github.com/hexojs/hexo-util/pull/171 +[#176]: https://github.com/hexojs/hexo-util/pull/176 +[#170]: https://github.com/hexojs/hexo-util/pull/170 +[#169]: https://github.com/hexojs/hexo-util/pull/169 +[#181]: https://github.com/hexojs/hexo-util/pull/181 +[#173]: https://github.com/hexojs/hexo-util/pull/173