Skip to content

Commit 08e1ad5

Browse files
committed
chore: show “ in toc
1 parent 0565721 commit 08e1ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/api-docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const getTableOfContents = (content: string): TableOfContents[] => {
166166
const [depth, title] = parseLine(item);
167167
if (title && depth && depth <= 2) {
168168
toc.push({
169-
title: title.replace(/[^a-zA-Z0-9+\\/\-~_:,.<>&?!()\s]/g, ''),
169+
title: title.replace(/[^a-zA-Z0-9+\\/\-~_:,.<>&?!()\s"]/g, ''),
170170
id: slugifyText(title),
171171
level: depth + 1,
172172
});

0 commit comments

Comments
 (0)