leandrocp / mdex

A CommonMark-compliant fast and extensible Markdown parser and formatter for Elixir.
https://mdex-c31.pages.dev
MIT License
128 stars 10 forks source link

Implement sigils #21

Closed leandrocp closed 5 days ago

leandrocp commented 11 months ago

Interesting idea from this tweet https://twitter.com/pepicrft/status/1714694213642637538

susanthenerd commented 5 days ago

Any updates on this? I'm working on a project which would benefit a lot from this functionality

leandrocp commented 5 days ago

Hi @susanthenerd are you looking for embedded Phoenix components or a sigil that converts into plain HTML?

susanthenerd commented 5 days ago

I'm interested in embedded phoenix componets.

leandrocp commented 5 days ago

Hi @susanthenerd I just added a LiveView example here https://github.com/leandrocp/mdex/tree/main/examples

Please give it a try but you'll need Rust installed to compile the dependencies. If that works out for your needs, then I can work on a proper release that won't require Rust (binaries will be pre-compiled).

leandrocp commented 5 days ago

I'm closing this issue since the ~M sigil was added into main. Without support for LiveView for now because that might be a separated package mdex_live_view. But please feel free to add more comments here. Thanks!

susanthenerd commented 4 days ago

I gave it a try and it seems to work fairly well. I will report back if I find any issues. Thank you very much