Why HTML Syntax Trees Beat Regular Expressions
BlogA tested comparison: a common regex "fix" for HTML misses attacks and corrupts text, while a syntax tree handles every case.
Longer pieces about the ideas behind rehype and how to combine it with the rest of the unified ecosystem.
A tested comparison: a common regex "fix" for HTML misses attacks and corrupts text, while a syntax tree handles every case.
One tested pipeline that turns user-written Markdown into safe, linkable, highlighted HTML, and why each step sits where it does.
Looking for step-by-step instructions? See the tutorials.