redirection.io can now convert your HTML pages to Markdown dynamically

The Convert HTML to Markdown action converts an HTML response to Markdown on the fly, directly at the edge. It comes with a redesigned action selector and support in the public API.

The rule action selector, with the HTML to Markdown action highlighted

Markdown is a lightweight, plain-text formatting syntax: headings, links, lists and emphasis are written with a few simple characters instead of HTML tags. It is easy to read for humans and easy to parse for machines, which is why AI crawlers and LLM tools increasingly prefer it over full HTML pages.

A common use case is therefore to serve a Markdown version of your pages to those tools, without changing anything on your backend. The simplest way is through content negotiation: when a client requests a page with the Accept: text/markdown header, redirection.io returns the Markdown version.

curl -H "Accept: text/markdown" https://your-site.example/blog/some-page

Our new Convert HTML to Markdown recipe installs exactly this setup for a folder of your choice (or the whole site): it adds a Vary: Accept header on the matched URLs, and returns Markdown with a text/markdown content type when the client asks for it.

The recipe is the fastest way to get started: pick a folder, install it, and publish. You can then open the generated rules to fine-tune the trigger or add more actions.

You can also add the action manually to any rule. See the actions reference for details.