We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 606fa9b commit 3e77f05Copy full SHA for 3e77f05
lib/slugifyMarkdownHeadline.ts
@@ -10,9 +10,7 @@ export default function slugifyMarkdownHeadline(
10
if (typeof markdownChildren === 'string')
11
return slugify(markdownChildren, {
12
lower: true,
13
-
14
trim: true,
15
16
remove: /[*+~()'"!]/g,
17
});
18
@@ -33,18 +31,13 @@ export default function slugifyMarkdownHeadline(
33
31
if (metaSlug) return metaSlug;
34
32
35
const joinedChildren = markdownChildren
36
37
.filter((child) => typeof child === 'string')
38
39
.map((string) => string.replace(FRAGMENT_REGEX, ''))
40
41
.join(' ');
42
43
const slug = slugify(joinedChildren, {
44
45
46
47
48
49
50
0 commit comments