Skip to content

Commit 62cfd39

Browse files
author
CI Build
committed
🗜️ build [skip ci]
1 parent c9ca14b commit 62cfd39

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/index.cjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,13 @@ function gfmHeadingId({ prefix = '', globalSlugs = false } = {}) {
9090
hooks: {
9191
preprocess(src) {
9292
if (!globalSlugs) {
93-
headings = [];
94-
slugger = new BananaSlug();
93+
resetHeadings();
9594
}
9695
return src;
9796
}
9897
},
9998
renderer: {
10099
heading(text, level, raw) {
101-
console.log('Updated code Again!');
102100
raw = raw
103101
.toLowerCase()
104102
.trim()

lib/index.umd.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,13 @@
9494
hooks: {
9595
preprocess(src) {
9696
if (!globalSlugs) {
97-
headings = [];
98-
slugger = new BananaSlug();
97+
resetHeadings();
9998
}
10099
return src;
101100
}
102101
},
103102
renderer: {
104103
heading(text, level, raw) {
105-
console.log('Updated code Again!');
106104
raw = raw
107105
.toLowerCase()
108106
.trim()

0 commit comments

Comments
 (0)