amehime / hexo-renderer-multi-markdown-it

A renderer plugin for Hexo based on Markdown-it and auto Minify HTML, CSS, JS.
http://amehime.github.io/shoka
MIT License
33 stars 9 forks source link

Update index.js #6

Open ReverseSacle opened 3 months ago

ReverseSacle commented 3 months ago

修复C/C++代码高亮时,C风格(/**/)内部注释无效。当使用C风格注释时,多行注释只有一行有效,这里模仿了高亮逻辑,通过手动判断是否是注释,当确认是注释时添加注释标签。