[fix] multi renderer support, resolve #476 #481
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
hexo-renderer-marked
和hexo-renderer-markdown-it-plus
为标题添加的锚点按钮的类名不一致,主题只对应 Hexo 默认渲染器做了适配。通过更改 CSS 选择器,可以使多个渲染器生成的页面具有相同的标题样式,解决 #476 的问题。
同时,移除了
{% quot %}
标签中未使用的锚点按钮,进一步精简了代码,便于后期维护。