hexojs / hexo-renderer-markdown-it

Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.
MIT License
343 stars 60 forks source link

fix(anchors): utilize slugize() of hexo-util #95

Closed curbengh closed 4 years ago

curbengh commented 4 years ago

BREAKING CHANGE: anchors retain case by default

Noticed while reviewing https://github.com/hexojs/hexo-renderer-markdown-it/pull/94, this plugin currently uses sluggo library. This PR replaces it with hexo-util slugize() used in hexo and hexo-renderer-marked.

This shares similar goal with https://github.com/hexojs/hexo-renderer-markdown-it/pull/90 to bring consistency with hexo-renderer-marked. I think there'll be no more breaking change for v4. Later PRs are more on feature parity (features that enabled by default in hexo-renderer-marked).

curbengh commented 4 years ago

In release note, we need to mention an example configuration that could retain hexo-renderer-markdown-it@3's behavior.

yep, I'm planning to do that.