Skip to content

Commit a952c84

Browse files
authored
includes -> startsWith
1 parent 99b63f0 commit a952c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/server/markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const default_renderer = {
116116
});
117117
},
118118
link: (href, title, text) => {
119-
if (href?.includes('$docs')) {
119+
if (href?.startsWith('$docs')) {
120120
const url = href.replace('$', 'https://svelte.dev/');
121121
return `<a target="_blank" href="${url}">${text}</a>`;
122122
} else if (href?.includes('$kitdocs')) {

0 commit comments

Comments
 (0)