-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
feature: embedded instagram posts #233
Comments
willing to do the work for this |
Two ideas to solve this without having to do any changes to
const renderer = {
link(string href, string title, string text) {
const url = new URL(href)
if (url.hostname === 'instagram.com') {
// do sth fancy here that returns html to embed the post, could even fetch the html content here
return <div>...</div>
}
return false // default renderer kicks in
}
} For the latter one it would be really useful to finally finish the stuff around the |
Ok, i'll have a dig around and see if I can locate a suitable renderer, i.e. option 2. |
You're right, it's missing from the docs, but it's there in the types: Lines 85 to 90 in 95502c5
Using |
Problem:
Related to #122
When outputting HTML, it is desirable to embed instagram posts rather than have a link to them taking the reader away from the page.
Solution:
I would like to have a flag e.g.
--embed-socials
to add the necessary HTML and js to embed any urls to instagram postsThe text was updated successfully, but these errors were encountered: