Comment

Comment by hyperhello

What if you just set innerHTML to a quoted HTML string then the syntax colorizer would color it for you? Would that settle most of what you were doing transpiling for? Or just put the tags and attributes in JSON and the content in quotes? Universal and guaranteed to work without proprietary superlanguages.
parent hyperhello 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton