News for hackers. Stuff that matters.
Re:Show HN: Turn Markdown into React/Svelte/Vue UI at runtim... by threetonesun on Tuesday August 26, 2025 @07:56AM (#45025292)
It's very silly. Given that Markdown fully supports HTML I have built sites using just Markdown + web components but that's... just how it works.

What's really needed is a better editor experience.

Re:Show HN: Turn Markdown into React/Svelte/Vue UI at runtim... by didgeoridoo on Tuesday August 26, 2025 @08:15AM (#45025497)
Nice discussion on this here just a couple weeks ago: https://news.ycombinator.com/item?id=44865997
Re:Show HN: Turn Markdown into React/Svelte/Vue UI at runtim... by lelanthran on Tuesday August 26, 2025 @09:27AM (#45026263)
> Given that Markdown fully supports HTML I have built sites using just Markdown + web components but that's... just how it works.

Agreed. My blog is a single shell script that runs pandoc on all the files in a subdir, generates a new .md file for table of contents, and then uses pandoc to generate a ToC.html file.

That doesn't mean that my the site uses no Javascript - the magic of web components means that I can place `<some-custom-component> ...` in the middle of my .md content and have interactive components in the resulting html.

What would be really useful is decent tooling for this sort of authoring.

Re:Show HN: Turn Markdown into React/Svelte/Vue UI at runtim... by yaoke259 on Tuesday August 26, 2025 @10:18AM (#45026925)
this actually uses web components under the hood! the dsl is more secure and easier to write (at least in my opinion). For v2 I'll make the whole design/architecture more polished and web-component oriented, possibly with some sort of verifier/editor support???