Skip to content

Commit

Permalink
markdown: fix embedding youtube links
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Nov 28, 2024
1 parent 6fe547c commit b472c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/markdown/Markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const remarkTRCustomColors = () => {

const transformLink = (link: any): any => {
const youtubeVideo = parseYoutubeLink(link.href);
if (youtubeVideo?.playlistID || youtubeVideo?.playlistID) {
if (youtubeVideo?.videoID || youtubeVideo?.playlistID) {
return <YoutubeEmbed {...youtubeVideo} />;
}
return <a href={link.href}>{link.children}</a>;
Expand Down

0 comments on commit b472c25

Please sign in to comment.