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

(andreadimatteo.com)

21 points | by deotman 10 hours ago ago

3 comments

  • wpollock 9 hours ago ago

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

  • regenschutz 9 hours ago ago

    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?

    • deotman 9 hours ago ago

      - 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.