hexo-renderer-markdown-it
Advanced tools
Comparing version
@@ -25,3 +25,3 @@ 'use strict'; | ||
const titleStore = {}; | ||
let titleStore = {}; | ||
const originalHeadingOpen = md.renderer.rules.heading_open; | ||
@@ -62,4 +62,8 @@ const slugOpts = { transform: opts.case, ...opts }; | ||
}; | ||
md.core.ruler.push('clear_anchor_title_store', () => { | ||
titleStore = {}; | ||
}); | ||
}; | ||
module.exports = anchor; |
{ | ||
"name": "hexo-renderer-markdown-it", | ||
"version": "6.0.1", | ||
"version": "6.1.0", | ||
"description": "Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.", | ||
@@ -37,2 +37,3 @@ "main": "index.js", | ||
"markdown-it-abbr": "^1.0.4", | ||
"markdown-it-attrs": "^4.1.3", | ||
"markdown-it-cjk-breaks": "^1.1.2", | ||
@@ -53,3 +54,3 @@ "markdown-it-container": "^3.0.0", | ||
"hexo": "^6.0.0", | ||
"mocha": "^9.1.3", | ||
"mocha": "^10.0.0", | ||
"nyc": "^15.0.0" | ||
@@ -56,0 +57,0 @@ }, |
@@ -251,5 +251,5 @@ # hexo-renderer-markdown-it | ||
# A suffix that is prepended to the number given if the ID is repeated. | ||
collisionSuffix: '' | ||
collisionSuffix: '' | ||
# If `true`, creates an anchor tag with a permalink besides the heading. | ||
permalink: false | ||
permalink: false | ||
# Class used for the permalink anchor tag. | ||
@@ -271,2 +271,3 @@ permalinkClass: header-anchor | ||
- markdown-it-abbr | ||
- markdown-it-attrs | ||
- markdown-it-cjk-breaks | ||
@@ -273,0 +274,0 @@ - markdown-it-container |
17304
0.66%132
2.33%345
0.29%13
8.33%+ Added
+ Added