Comment

Comment by simpaticoder

The correct solution is a synthesis: generate the boxes and arrows from code. Then let a human hide, move, and style those objects. When the code changes, the boxes and arrows will change, and perhaps the style will want to change, but at least the diagram will remain correct. This is precisely the distinction between semantic markup and css, btw. Implying that the html would be auto generated, the css would be hand crafted.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton