Skip to content

Commit e055d40

Browse files
author
CI Build
committed
🗜️ build [skip ci]
1 parent 915fba6 commit e055d40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function gfmHeadingId({ prefix = '', globalSlugs = false } = {}) {
116116
renderer: {
117117
heading({ tokens, depth }) {
118118
const text = this.parser.parseInline(tokens);
119-
const raw = unescape(this.parser.parseInline(tokens, this.parser.textRenderer))
119+
const raw = unescape(text)
120120
.trim()
121121
.replace(/<[!\/a-z].*?>/gi, '');
122122
const level = depth;

lib/index.umd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
renderer: {
121121
heading({ tokens, depth }) {
122122
const text = this.parser.parseInline(tokens);
123-
const raw = unescape(this.parser.parseInline(tokens, this.parser.textRenderer))
123+
const raw = unescape(text)
124124
.trim()
125125
.replace(/<[!\/a-z].*?>/gi, '');
126126
const level = depth;

0 commit comments

Comments
 (0)