Skip to content

Commit

Permalink
Wrap in paragraph, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gfscott committed Feb 5, 2025
1 parent ba22ada commit b4793e3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 90 deletions.
3 changes: 2 additions & 1 deletion packages/youtube/lib/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ function liteEmbed(url, options, index) {
// Lite mode doesn't support playlists, so if there's no
// video ID, bail out and just return the plain URL.
if (!id) {
return url
console.error(`Lite mode doesn't support YouTube playlists. Skipping ${url}`);
return `<p>${url}</p>`;
}

// override start time if it's set in the URL
Expand Down
Loading

0 comments on commit b4793e3

Please sign in to comment.