OneLogic
Utility

MdToX

From Markdown to PDF, DOCX, HTML, PPTX. And back.

We extracted MdToX from our projects and release it as a free utility. It converts Markdown into professional document formats, with themes, table of contents, cover pages, Mermaid diagrams and DOCX template support.

Why it exists

AI agents speak Markdown — it's their native format: structured plain text, readable, diffable. Organizations speak PDF, DOCX, PPTX — those are the formats they sign, archive, share.

Fluid translation between these two worlds is one of the conditions that enable AI agent integration into real-world processes. MdToX covers that piece of infrastructure.

What it does

Converts Markdown to PDF, DOCX, HTML and PPTX.

Rasterizes SVG to PNG, JPEG or WebP.

Reverse conversion DOCX → Markdown, with image extraction.

10 built-in themes, YAML extensibility, theme extraction from DOCX templates.

Table of contents, cover page, page numbers, landscape, Mermaid diagrams.

Built-in MCP server for direct use by AI agents.

Installation

MdToX is a .NET global tool. Requires .NET 10 SDK.

terminal
$ dotnet tool install -g MdToX
Availability

Free. MIT licensed. Available on NuGet.