alt.hn

7/29/2026 at 1:04:30 AM

Show HN: Learning Rust by writing a Markdown to HTML compiler

https://andreadimatteo.com/md-to-html-compiler.html

by deotman

7/29/2026 at 1:53:51 AM

I think you have mixed up ordered and unordered lists? But a fun sounding project, good luck!

by wpollock

7/29/2026 at 2:00:50 AM

HTML is notoriously complicated to parse correctly.

* Is generating valid HTML documents as complicated/difficult?

* How much time did you spend on reading the HTML Standard?

* What resources did you use? MDN? The spec itself? LLMs?

by regenschutz

7/29/2026 at 2:06:16 AM

- I think it's orders of magnitude easier, we have abandoned easy and semantically significative HTML years ago ~thanks~ to frameworks like React. I would say that fine-tuned LLMs are one feasible and fast approach to this problem.

- I'm using the subset of HTML useful for my scope, no more than 2-3 hours if you already know some HTML is enough.

- W3C is enough for a project of this size I suppose.

by deotman