Skip to content

Markdown for LLMs: why each page of your site needs a .md version

A web page is built for a browser. A markdown copy of the same page is built for a reader that only wants the words. Here is what that copy is, why it helps, and how to publish it safely.

The team behind Folio at wrxstack8 min read

Markdown for LLMs means publishing a plain markdown copy of each web page, usually at the same address with .md added, so an AI assistant can read the words, headings and links without the scripts, menus and layout code around them. The llms.txt proposal suggests exactly this convention. A markdown copy does not replace your HTML page or change how search engines rank it, as long as the copy points back to the HTML page as the original.

The problem

Why a normal web page is hard work for a language model

A modern web page is mostly not words. It is navigation, scripts, style sheets, tracking tags, image markup, cookie banners and footer links, with the part a person actually reads sitting somewhere in the middle. A browser knows how to turn all of that into a tidy page. A language model that fetches the raw page has to work out which parts matter.

That extraction step is where things go wrong. A menu item can be mistaken for a heading. A testimonial can lose the name of the person who gave it. A two-column layout can be read in the wrong order. Text that only appears after a script runs may never be seen at all. Every one of those errors can end up in an answer about you.

Markdown removes the guesswork. It is a plain text format where a heading is a line starting with a hash, a list item starts with a dash, and a link is the link text in square brackets followed by the address in round brackets. There is nothing to strip away, so what the model reads is what you wrote.

The benefits

What a markdown copy gives an AI assistant

Each of these is about accuracy, not about ranking. The goal is that whatever an assistant says about you comes from your own words, read correctly.

Structure

Headings that mean what they say

A markdown heading is unmistakable. The model knows which line names the section and which lines belong to it, so a case study title stays attached to its result.

Size

Fewer wasted words

Language models read in tokens and work within a limited context. A copy without markup fits more of your real content into that limit, so less is cut off.

Links

Links kept with their labels

Each link keeps its visible text next to its address, so an assistant can tell your resume from your contact page without guessing from a file name.

Order

Reading order you control

Markdown has one column and one order. A side panel or a sticky header cannot jump into the middle of your story.

Scripts

No script required

Content that appears only after scripts run can be invisible to a simple fetch. A markdown copy is complete the moment it arrives.

Trust

Same facts as the page

Because the copy is generated from the same content as the page, the two cannot drift apart. A reader that checks one against the other finds agreement.

The convention

How a .md version of a page is published

There is no official standard yet, but the llms.txt proposal from September 2024 describes a simple pattern that is easy to follow and easy for a tool to find.

  1. Use the same address with .md added.

    The proposal suggests that a page at /about offers its markdown copy at /about.md. A page with no file name, such as the home page, offers index.md instead. A tool that knows one address can work out the other.

  2. Announce the copy in the page head.

    Add a link element with rel set to alternate and type set to text/markdown, pointing at the copy. This is the same mechanism sites already use to announce feeds and translations, so it is a familiar signal.

  3. Point the copy back at the original.

    The copy should name the HTML page as its canonical address, both in the text and in an HTTP Link header with rel set to canonical. That tells search engines the HTML page is the one to index and rank.

  4. Serve it as markdown.

    Send the copy with the content type text/markdown and a UTF-8 character set, so any client knows exactly what it received.

  5. List the copies in llms.txt.

    An llms.txt file at the site root can link every markdown copy, so an agent that starts there finds the clean version of each page without crawling the HTML first.

  6. Keep the sitemap for HTML.

    Your sitemap should keep listing the HTML pages only. The markdown copies are an alternative format, not extra pages competing for the same search result.

The worry

Does a markdown copy count as duplicate content?

This is the first question most people ask, and the answer depends on one detail: whether the copy declares the HTML page as its canonical address. A canonical declaration is the standard way to say that two addresses carry the same content and which one is the original. Search engines use it to consolidate signals on the page you chose.

With that declaration in place, the markdown copy behaves like a print version or a feed. It exists for a different kind of reader and points back to the page that should appear in results. Without it, a search engine has to decide for itself which version to show, which is a decision you should not leave to chance.

It also helps that the copy is not listed in the sitemap and is not linked from your visible navigation. It is discoverable by the tools that look for it, through the page head and llms.txt, and invisible to everyone else.

The rule that matters most

A markdown copy must never say more than the page

The most serious mistake with markdown copies is a privacy mistake. If the copy is generated from your raw data instead of from what the page actually shows, it can include things you chose to hide: a draft section, a private project, an email address you only reveal on request. An AI crawler would then read, and possibly repeat, exactly what you kept off the page.

The safe rule is simple. The copy carries what the page shows to an anonymous visitor, and nothing else. If a section is hidden, it is absent. If a project needs a passcode, it is absent. If the page is marked no-index, there should be no copy at all, because a copy of a page you asked search engines to ignore defeats the point of asking.

Apply the same test whenever you check your copies: open the page in a private window, open the .md version beside it, and confirm nothing appears in the copy that the page does not show.

On Folio

How Folio publishes markdown copies for you

Every page of a Folio site that search engines may index has a markdown copy. Add .md to any page address, such as /about.md, or open /index.md for the home page. On a platform address the home copy sits under your name, at /yourname/index.md. Each page announces its copy in the head with a text/markdown alternate link, and each copy carries a Canonical line and an HTTP canonical header that point at the HTML page.

The copies follow the same rules as the pages. Hidden sections, unlisted and passcode work, and a protected or hidden email or phone never appear. A no-index page has no copy, and with Allow search indexing turned off there are no copies at all. The sitemap stays HTML only, robots.txt never blocks the .md addresses, and llms.txt links every copy in its Optional section.

Nothing here is written by an AI model. The copies are generated directly from the content you publish, so they change the moment your page changes. Whether a given assistant reads them is up to that assistant, and support varies, but the clean version of your site is there for any tool that asks.

Frequently asked questions

What is a markdown version of a web page?

It is a plain text copy of the page written in markdown, with the same headings, paragraphs, lists and links but none of the layout code, scripts or navigation. It is usually published at the page address with .md added.

Why do AI assistants prefer markdown to HTML?

Markdown carries structure without noise. A heading, a list or a link is marked in a way a model reads directly, so less of its limited context is spent on markup and there is less room to misread which text belongs where.

Will a .md copy of my page hurt my Google rankings?

Not when the copy names the HTML page as its canonical address and stays out of the sitemap. That tells search engines which version to index, in the same way a print version or a feed does.

Do ChatGPT, Claude or Perplexity read .md pages?

Some tools and agents look for markdown copies and some do not, and each system decides for itself. Publishing a copy makes your content easier to read for the ones that do; it is not a guarantee of being read or cited.

How do I find the markdown copy of a Folio page?

Add .md to the page address, for example /about.md, or open /index.md for your home page. Your llms.txt file also lists every copy in its Optional section.

Start free

Build the portfolio, resume, and site in one place.

A theme, an AI resume, a custom domain, and the SEO built in. No card required to start, and your work is yours to export any time.

Keep reading