Back to browse
GitHub Repository

A lightweight, fast, pure-Python Markdown parser

0 starsPython

Montmark – A lightweight, fast pure-Python Markdown parser

by desgeeko·Jun 12, 2026·1 point·0 comments

AI Analysis

MidCozyShip It

Hand-coded parser beats established libraries on speed but remains alpha quality.

Strengths
  • Benchmark results show 5.73 MB/s throughput, outperforming mistune (4.25) and mistletoe (3.81)
  • Single-file standalone usage possible — extract montmark.py from PyPI and run without dependencies
  • Author wrote every line by hand as a CommonMark compliance puzzle, not generated or forked
Weaknesses
  • Alpha quality with explicit production warning — GitHub tables and streaming mode still TODO
  • Python Markdown parsing is solved territory with mistune, mistletoe, marko, and markdown_it already mature
Target Audience

Python developers needing Markdown-to-HTML conversion

Similar To

mistune · mistletoe · marko

Post Description

Hi HN!

This is a pet project that is still a little bit rough around the edges, but I would love to hear some feedback.

I write this code by hand, out of love for Markdown and for the joy of solving every CommonMark test case like a puzzle.

Cheers

Similar Projects

Developer Tools●●Solid

An Embeddable SQLite Parser

424k statements/sec with zero dependencies — sqlparse can't match this performance.

WizardryNiche Gem
marcobambini
103mo ago