astro-embed
astro-embed copied to clipboard
Add option in `LinkPreview` to ignore `og:video`
Hello
I would like to use the LinkPreview component and for it to show images only, even if og:video is available.
Unfortunately there is currently no option to achieve that. So here's to ask for it.
Thanks in advance!
Hi @jahirfiquitiva — that seems like a fair request. Would you be interested in making a PR?
We’d want to add a prop to https://github.com/delucis/astro-embed/blob/main/packages/astro-embed-link-preview/LinkPreview.astro and then use it when deciding whether to render the video here:
https://github.com/delucis/astro-embed/blob/e5fa7e3018506eff78db1399bf9827c2af5b27ac/packages/astro-embed-link-preview/LinkPreview.astro#L38-L42