Forem Creators and Builders 🌱

Discussion on: Feature update: Markdown toolbar

Collapse
 
varhal profile image
Varhal • Edited

Hey! I think the easiest way to use liquid tags is to replace them with something like this github.com/discourse/onebox.

How it works:
The user simply inserts a link to twitter, facebook, youtube, etc. into a post or comment. and this link automatically turns into a liquid tag.

Like that:

Collapse
 
amyatforem profile image
Amy Lin

Hey Varhal - thanks for the reference.

What you have brought up has also been discussed internally! While this is an easy, intuitive way to add embeds, we do think we still want to respect the author's decision on whether they want to add a link or turn it into an embed. So unless anything changed or some other good reasons suggest against it, I think we are going into this direction :-)

Thread Thread
 
varhal profile image
Varhal

Hey, @amyatforem !

If the author does not want to convert the link into a block, there are two ways:

  1. Asking the user if he wants to turn into a block

  2. Convert into a block and give the opportunity to cancel, add a cross

Example from notion.so

Thread Thread
 
amyatforem profile image
Amy Lin

I think we are in sync, @varhal πŸ˜‚

This is exactly one of the options we have discussed, in terms of how to realize the vision - essentially turn links into embeds automatically, but provide a quick way to revert it back to a link effortlessly. So yes - we would definitely consider that! Thank you for your wonderful feedback.