mathspp
  • Blog
    • Pydon'ts
    • Problems
    • TIL
    • Twitter threads
  • Books
  • Talks
  • Trainings
    • Advanced iteration
    • Python for scripting and automation
    • Rust for Python developers
  • Courses
  • About
Link blog

Efficient streaming of Markdown in the terminal

by Will McGugan on 24-07-2025 11:11

In this article, Will writes about how he implemented efficient Markdown streaming for his project Toad.

The highlight of this article, for me, is the fact that Will managed to implement efficient rendering of streamed Markdown content even though he's using a markdown parser that does not support streaming. His solution was simple in hindsight: Markdown can be parsed in blocks, and when you get content that starts a new block, you know you won't have to reparse the previous content.

Previous link Next link

I hypothesize that, somewhere on Earth, someone is reading this sentence.

mathspp
  • Blog
    • Pydon'ts
    • Problems
    • TIL
    • Twitter threads
  • Books
  • Talks
  • Trainings
    • Advanced iteration
    • Python for scripting and automation
    • Rust for Python developers
  • Courses
  • About