Falco.Markup icon indicating copy to clipboard operation
Falco.Markup copied to clipboard

Html to Falco mark-up

Open AlbertoDePena opened this issue 1 year ago • 4 comments

Is there a website to convert html to Falco mark-up? Not sure if there is one for giraffe or oxpecker. That would be super handy to drive adoption.

Thanks for this library btw.

AlbertoDePena avatar Oct 12 '24 02:10 AlbertoDePena

That's a great question.

I wonder what the best way to do this would be? Naively I want to say something like AngleSharp to create a syntax tree from the markup, and project these into Falco markup.

pimbrouwers avatar Jun 26 '25 15:06 pimbrouwers

@pimbrouwers

Sorry for the delay. I will start using your fantastic DSL in some internal apps at work. I think its a must to have a HTML-to-Falco-DSL converter. Here is the code.

https://github.com/AlbertoDePena/html-to-fsharp-dsl

Im sure its needs a few tweaks here and there. Let me know if you want to host this in your GitHub page or I can do it.

Image

AlbertoDePena avatar Sep 09 '25 01:09 AlbertoDePena

No need to be sorry at all! That's life! I can't access the link. But I think it's a neat idea! I am curious how you pulled it off. I've been thinking we could use JavaScript, recurse the DOM and transcode the HTML elements.

pimbrouwers avatar Sep 09 '25 10:09 pimbrouwers

Give the link another shot! https://github.com/AlbertoDePena/html-to-fsharp-dsl

It is hosted here: https://albertodepena.github.io/convert-html-to-fsharp-html-dsl/

AlbertoDePena avatar Sep 09 '25 14:09 AlbertoDePena