Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[draft] make embedded video in html cards work in email #1398

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cathysarisky
Copy link
Contributor

Some Ghost users host videos externally (i.e. on AWS) and use the html card to paste in a video tag. Email clients generally show nothing, not even the poster.

This patch adjusts the write-out of the html card (only for email, not for web), identifying video tags with the poster attribute set, and replacing them with the poster image and a link to the published post.

I'm using cheerio for this proof of concept, but happy to swap it for something else. (It would be a new dependency for Koenig.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant