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 d332690 commit db2d987Copy full SHA for db2d987
src/utils/markdown.ts
@@ -14,7 +14,6 @@ export async function replaceYouTubeLinks(
14
let updatedContent = markdownContent;
15
16
for (const match of matches) {
17
- const fullUrl = match[0];
18
const id = match[1];
19
20
if (!id) continue;
@@ -23,8 +22,7 @@ export async function replaceYouTubeLinks(
23
22
props: { id, alt: "Embedded YouTube video" },
24
});
25
26
- updatedContent = updatedContent.replace(fullUrl, html);
+ return html;
27
}
28
-
29
return updatedContent;
30
0 commit comments