How to embed a Reddit post in my blog post? #62
-
Hello! I would like to integrate a reddit post into my article. Reddit is not (yet) supported by sveltekit-embed. I tried to do it this way in my Reddit post:
<html>
<blockquote class="reddit-embed-bq" style="height:500px" data-embed-theme="dark" data-embed-height="500"> <a href="https://www.reddit.com/r/unixporn/comments/1322ms3/xragnar_multiple_deskop_support_nord_theme/">[xragnar] Multiple Deskop Support & Nord theme</a><br> by <a href="https://www.reddit.com/user/cococry">u/cococry</a> in <a href="https://www.reddit.com/r/unixporn/">unixporn</a> </blockquote><script async="" src="https://embed.reddit.com/widgets.js" charset="UTF-8"></script>
</html> Is there a better (or cleaner) to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello, this is Hubert, a rookie. 🥲 I took a look at the post you want to embed and tried the embedding method provided by Reddit, which actually provides a more convenient
The Hide post content: Dark mode: Hide If Updateds:
For dimensions, the height defaults to You can use the above to embed it into your post. Maybe I can create a component for this later. Hope this helps. 😆 |
Beta Was this translation helpful? Give feedback.
-
I recommend making a feature request to |
Beta Was this translation helpful? Give feedback.
Hello, this is Hubert, a rookie. 🥲
I took a look at the post you want to embed and tried the embedding method provided by Reddit, which actually provides a more convenient
<iframe>
embedding method that can be found in the source code of the Reddit Embed page, in a format similar to the following (with formatting):