2 min readNov 27, 2026by jakub
Markdown ContentBrowse qoliber Magento extensions on qoliber.com
Changelog
Current version: 1.0.0
[1.0.0] - 2026-11-27
Added
- Markdown responses on the same URL for requests that send
Accept: text/markdown; browsers keep receiving HTML. Content-Type: text/markdown; charset=utf-8and anx-markdown-tokensestimate. With the built-in page cache both representations carryVary: Accept.- Conversion of home, CMS, category, product, search result and advanced search result pages that are publicly cacheable; every other page stays HTML.
etc/markdown_content.xml: any module declares its own pages, by full action name, to make them available in Markdown. Merchants can exclude page types per store view.Acceptnegotiation that honours quality values and thecharsetparameter: HTML when the client prefers it, Markdown on a tie when it is named, UTF-8 only.- Anonymous visitors only by default: a signed-in customer keeps receiving HTML unless the store turns on "Serve Signed-in Customers".
HEADrequests are answered with the headers of the Markdown the sameGETreturns.- Works with the built-in page cache: the cache stores one HTML copy of a page and Markdown is produced from it, so Magento's cache tags keep both formats current.
- A cache type of its own, "Markdown Content" (
qoliber_markdown_content): converted Markdown is kept there, one entry per page and kind of visitor, under the page's own cache tags. A saved product, category, CMS page or block drops the Markdown of the pages that show it, and refreshing the Page Cache empties it too. - Behind Varnish, a Markdown request is answered from kept Markdown without rendering the page.
- Prices shown with and without tax keep their labels ("Incl. Tax", "Excl. Tax").
- The metadata header carries the page language (
lang). - In developer mode,
X-Qoliber-Markdown-Cachesays whether the Markdown was read from the cache. - Store view settings for excluded page types, signed-in customers, the content to convert (main content or whole document), images, additional elements to remove, the size limit, the metadata header, structured data and the token header.
- Cleanup rules for Luma and Hyvä markup: form controls, skip links, list toolbars, hidden elements, duplicate gallery images, and tab titles turned into headings.
- Extension points for removal rules, heading rules, content processors, the conversion library and the token estimator.
- Markdown is always sent
private, no-store, so Varnish and CDNs never store it. - A storefront guard for Magento 2.4.7, where a request for
Accept: text/markdowncan end in HTTP 500 on its own (on the cart, and on every page of a store that runs Magewire). - Unit, integration and Playwright test suites, a Varnish test script, an HTTP check script and a script that runs them against other Magento versions.