MARKDOWN-IS COURSE GUIDE

Markdown is a Terrible Language

A chapter-by-chapter readback of the free course by Theo - t3․gg on Theo - t3․gg.

Length22:06
Chapters16
Modules5
Plain Markdown with clickable timestamps — drops into Obsidian, Notion or GitHub as-is.

Theo argues Markdown fails precisely because we treat it like a programming language while it lacks any formal foundation — the real fix is a purpose-built syntax with a real build system, not more Markdown features.

Who it's for
Read this guide if
  • You render Markdown in apps or websites and fight parser quirks
  • You want to understand why Markdown tooling keeps breaking (XSS, ReDoS, footnotes)
  • You enjoy opinionated deep-dives into language and tooling design
Skip ahead if
  • You just want a Markdown syntax tutorial
  • You need a neutral survey rather than a strong opinion piece
  • You're new to markup concepts like parsing, grammars, or XSS
In brief
  • Runs 22 minutes 6 seconds (1,326 seconds).
  • Organized into 5 modules with 12 chapters.
  • Built around one source article plus a companion video essay.
  • Discussion-level content: no coding exercises, assumes dev familiarity.
  • Sponsored segment for RWX (local CI runs) included.

The walkthrough

Each chapter below is our original written explanation of what happens at that moment in the video — a paraphrase, not a transcript. Click any timestamp to jump the player.

Setup and the Case Against Markdown

0:00

Introduction

Theo introduces his history as a Markdown power user, keeping his resume as a Markdown file on GitHub and even filtering out employers who wouldn't accept it.

0:57

Why This Video Exists

The video responds to an article questioning why we still use Markdown, agreeing that its scope has crept into LLM communication and other file formats, and previews the argument that Markdown is the wrong primitive for memory.

1:52

Sponsor: RWX

RWX lets you run CI locally via a CLI without committing code, and pairs with an agent skill to run an agentic loop until tests pass before pushing.

4:02

The Good in Markdown

The article praises Markdown as a minimal, legible language for trivial documents with an essentially nonexistent learning curve — but the problem is the language itself, not the CommonMark specification.

Where Markdown Breaks

4:42

Ambiguous Syntax and Feature Creep

Unclear specifications drive feature creep: two very different Markdown snippets can produce identical output, and bold alone has multiple spellings even within CommonMark — a pain Theo hit rendering Markdown for T3 chat.

7:04

Security: ReDoS and Inline HTML

Regex-based parsing exposes Markdown to ReDoS attacks (including a 6.9-severity CVE in markdown-it), while inline HTML bolts assembly-like complexity — and XSS risk — into a simple document format.

8:52

The Real Parser Problem

Correct Markdown parsing is hard mostly because parsers must also ship a full HTML parser for inline HTML; the Markdown syntax itself is only about a tenth of the issue.

10:10

Unreasonable Expectations

Users demand LaTeX, Mermaid, custom styling, shortcodes, and more from Markdown, turning a trivial typesetting tool into something it was never designed to be.

XSS, Redundancy, and Parsing Theory

10:10

Inline HTML and Attack Surface

Mixing Markdown with inline HTML like iframe embeds widens the attack surface, producing recurring XSS vulnerabilities — and AI-generated parsers are expected to make it worse.

12:19

Colliding and Redundant Syntax

Markdown has two heading styles, two bold/italic forms, two rule and list styles, and footnote syntax that makes the grammar context-dependent — making it 'the C++ of markup languages.'

13:51

Context-Sensitive Grammar Requirements

Footnotes and reference-style links require resolving definitions elsewhere in the document, breaking context-free parsing assumptions and requiring a context-sensitive grammar.

Alternatives and the Build-System Argument

15:02

Rendering as Compilation

The most controversial claim: vanilla Markdown only needs one-to-one transliteration, but modern features like footnotes and math turn rendering into a full compiler with dependency graphs and typesetting engines.

16:19

Notion, Async Markdown, and Alternatives

Theo likes Notion's Markdown-as-hotkeys despite its broken export, calls 'async markdown' horrifying, and surveys alternatives — plain text, reStructuredText, MDX — concluding none is the answer.

18:20

The Fix: A Real Build System

The core argument: we use Markdown like a programming language, but without a formal foundation it fails at both; the answer is a trivially parsable grammar with compile-time hooks and no inline HTML.

History and Closing Thoughts

20:05

markdown.pl and Its Legacy

Jeff Atwood urged Gruber in 2012 to standardize, and Theo calls the original markdown.pl one of the worst small programs he's read — with many implementations faithfully replicating its bugs, including one that caused a real XSS infection.

21:28

Final Reflections

Theo credits the article's author for revealing how broken Markdown is, recommends the blog, and admits the temptation to rewrite his own projects in a new markup language while resisting it.

Moment by moment

TimeWhy it matters
4:02The verdict that the problem is the language itself, not the CommonMark spec
7:04Real security evidence: the markdown-it ReDoS CVE and crafted-star attack
8:52Key insight: Markdown parsers must ship a full HTML parser, the true root of parsing pain
15:02The most controversial claim: modern Markdown rendering is a full compiler, not a transliterator
20:05The history lesson: markdown.pl's bugs replicated across implementations caused an actual XSS virus

Do this next

  1. Audit your own Markdown usage: find every place you embed inline HTML and evaluate the XSS risk.
  2. Read the source article 'Why the heck are we still using Markdown??' linked in the video description.
  3. Test your Markdown parser with the pathological star-string input discussed, and check your dependency for known ReDoS CVEs.

Common questions

Is Markdown actually a programming language?

Theoretically, if you define a programming language as Turing complete, then yes — which is part of Theo's point that we now use Markdown like a programming language without it having the formal foundation for that role.

What's the biggest technical problem with Markdown?

Parsing. Because Markdown allows inline HTML, a correct parser must also include a full HTML parser, opening the door to XSS and ReDoS vulnerabilities and enormous implementation complexity.

What alternatives to Markdown does the video recommend?

None outright. Plain text, reStructuredText, and MDX all have flaws; the video's conclusion is to abandon Markdown in favor of a trivially parsable purpose-built grammar with a proper build system.

Does the video say to stop using Markdown entirely?

Theo agrees it's fine for trivial documents and even likes Notion's Markdown-as-hotkey approach, but argues it's the wrong primitive when pushed into scripting, memory, and complex document features.

Spot a mistake?

Spotted something off? Every summary on this page is hand-checked against the video, but we're human — if a timestamp or detail looks wrong, let us know and we'll fix it.

More course guides