hexojs / hexo-renderer-markdown-it

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

Support "anchors.level" option as an array #177

Open ppwwyyxx opened 2 years ago

ppwwyyxx commented 2 years ago

In markdown-it-anchor, the "level" option can be an array of levels: https://github.com/valeriangalliat/markdown-it-anchor#usage. But here it has to be an integer.

It would be good to support it in this plugin as well.

rivergold commented 2 years ago

You can try to edit here to change the range as a temporary solution.