# md-to-html-compiler - Lightweight Rust Markdown to HTML converter

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

> Hacker News story 49092151 · language: en · submitted 2026-07-29
> Web version: https://zeli.app/story/49092151
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 24 · by [deotman](<https://news.ycombinator.com/user?id=deotman>) · 💬 3
[original](<https://andreadimatteo.com/md-to-html-compiler.html>) · [HN discussion](<https://news.ycombinator.com/item?id=49092151>)

## Summary

md-to-html-compiler is a minimalist Rust tool designed to transform Markdown files into static HTML pages without the overhead of complex frameworks like Hugo. Built from scratch by a Rust novice, it features a custom parser that constructs an Abstract Syntax Tree (AST) to handle headings, lists, code blocks, and inline formatting. The tool supports YAML front matter for metadata management, offers a simple search interface, and includes vim-like navigation for a seamless reading experience. Perfect for developers seeking a transparent, dependency-free solution for personal micro-blogging.

## Key quote

> It was fun to see that some of my own choices were pretty similar to actual .md to .html compilers, even Hugo itself.

---

## Cite

- Page: https://zeli.app/story/49092151
- Date: 2026-07-29
- Source: andreadimatteo.com (https://andreadimatteo.com/md-to-html-compiler.html)
- Hacker News: https://news.ycombinator.com/item?id=49092151

## Other languages

- zh: https://zeli.app/zh/story/49092151 · markdown: https://zeli.app/zh/story/49092151.md
