forem.dev Community

loading...

Ask: Automatic link previews, YouTube embeds

dbkuper profile image Db ・1 min read

Hello friends,

I am just getting started so have some basic enquiries as I play around and explore.
How can a user create a post here like on facebook/twitter.
Basically, Url auto preview and embed automatically instead of using markdown.

https://youtu.be/qNj_sI6qndw

Discussion

pic
Editor guide
Collapse
rhymes profile image
rhymes

We have liquid tags, which are how we call custom embeds, for example, using your video:

This is how I've done it: {% youtube qNj_sI6qndw %}

You can find the rest in the editor guide: forem.dev/p/editor_guide