Digital Sovereignty for everyone

LH Content Converter

LH Content Converter converts content between Markdown, HTML and WordPress block markup, in any direction. It is infrastructure: it has no admin screens or content of its own, and exists so that every plugin that reads or writes content in these formats uses one engine and gets the same result.

Block conversion is done by automattic/blocks-engine-php-transformer, so Markdown or HTML lands as real, editable blocks (list items, nested lists, quotes, tables, code) rather than a lump of HTML, and anything that could not be mapped to a specific block is reported rather than silently lost. Other plugins call it through a small static PHP API.

It was previously called LH Markdown Converter, which only covered Markdown and HTML.

Key features

  • Markdown or HTML to block markup, with diagnostics for anything that fell back to a generic block.
  • Block markup back to HTML or Markdown, so content can be read, edited and written back without losing its structure.
  • Markdown to HTML (GitHub-flavoured) and HTML to Markdown, for pages served to AI agents and similar uses.
  • Degrades safely to escaped plain text when its Composer dependencies are missing, with an admin notice saying so.

Used by

LH Knowledge Base, LH Tasks, LH AI Legibility, LH MCP Content Transformer and LH MCP General Abilities all depend on it, so install it alongside any of them. It needs PHP 8.2 or later, and composer install in its directory after any zip install.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.