Skip to content
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

Support Liquid style Tags #30

Open
clsource opened this issue Mar 22, 2024 · 3 comments
Open

Support Liquid style Tags #30

clsource opened this issue Mar 22, 2024 · 3 comments

Comments

@clsource
Copy link

In the https://dev.to website they use special tags in Markdown documents to embed posts, gist, github repos, twitch streams, youtube, and other sites too.

I have been using a custom parser to enable this functionality while migrating my content from dev.to to my own server.

Example

{% youtube JNWPsaO4PNM %}

would render

<iframe style="min-height:50vh" width="100%" height="auto" src="https://www.youtube.com/embed/JNWPsaO4PNM" title="ElixirConf 2023 - German Velasco - Using DDD concepts to create better Phoenix Contexts" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="">
  </iframe>
@leandrocp
Copy link
Owner

@clsource I'm assuming youtube is a custom tag you'd implement yourself?

@clsource
Copy link
Author

clsource commented Apr 5, 2024

@leandrocp

Yes I created a simple Lib to get the same functionality of dev.to markdown editor
in my own website

https://github.com/ElixirCL/liquor

@leandrocp
Copy link
Owner

Nice. Support to manipulate the markdown AST is something I'm still woking on, which would enable you to transform liquid tags into html using https://hex.pm/packages/solid or whatever engine you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants