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 1063504 commit b6b9600Copy full SHA for b6b9600
src/routes/blog/_blog-api.ts
@@ -12,7 +12,7 @@ import { readingTime } from '$lib/utils/reading-time';
12
loadLanguages(['shell', 'markdown', 'json']);
13
14
const blogPath = './contents/blogs';
15
-const createAnchorAndFragment = (text) => {
+const createAnchorAndFragment = (text: string) => {
16
const anchorRegExp = /{([^}]+)}/g;
17
const anchorOverwrite = anchorRegExp.exec(text);
18
const fragment = anchorOverwrite
0 commit comments