Skip to content

Releases: Harsh-2002/mdx

v1.1.2

18 Mar 14:51

Choose a tag to compare

Full Changelog: v1.1.1...v1.1.2

Full Changelog: v1.1.1...v1.1.2

v1.1.1 — EPUB Export, Full-Text Search

15 Mar 07:07

Choose a tag to compare

What's New

EPUB Export

mdx export --to epub produces valid .epub files ready for Apple Books, Kobo, Calibre, and other e-readers.

  • Embeds local images as EPUB resources
  • Maps front matter (title, tags) to EPUB metadata
  • Preserves syntax-highlighted code blocks with inline styles
  • Light-theme, serif-based CSS optimized for e-readers
mdx export --to epub README.md
mdx export --to epub -o book.epub notes.md

Full-Text Search

mdx search finds content across markdown files using BM25 ranking with field boosting (headings > body > code).

  • Parallel file parsing via rayon
  • Filter by front matter tags with --tag
  • Highlighted snippets with heading context
  • Skips .git, node_modules, target, and other non-content directories
mdx search "rust async" .
mdx search --tag rust "ownership" docs/
mdx search -n 5 "error" .
mdx search -l "query" .              # file paths only (for piping)

Front Matter Module

Front matter parsing (title, date, tags, draft) extracted into a shared module used by search, EPUB export, and publish.

Other

  • Added mdx present, mdx watch, mdx toc, mdx search docs to README and website
  • Updated website with all commands, EPUB/search features, and new credits

Full Changelog: v1.1.0...v1.1.1

Full Changelog: v1.1.0...v1.1.1

v1.1.0 — Markdown for Agents

13 Mar 18:45

Choose a tag to compare

What's New

Markdown for Agents (MFA) Protocol Support

mdx is now a full participant in the Markdown for Agents protocol — both as a smart client and a smart server.

Smart client (mdx fetch)

  • Sends Accept: text/markdown header so MFA-enabled sites (e.g. Cloudflare) return pre-converted markdown directly
  • Reads X-Markdown-Tokens and Content-Signal response headers
  • Warns when sites signal ai-input=no
  • New --tokens flag shows estimated LLM token count
  • HTML sanitization before --raw conversion (strips <script>, <iframe>, javascript: URLs, etc.)
  • Richer front matter: og:image, og:url, site_name fields added

Smart server (mdx serve)

  • AI agents sending Accept: text/markdown get raw markdown instead of HTML
  • Responds with Content-Type: text/markdown, X-Markdown-Tokens, and Vary: Accept headers
  • Works in single-file, multi-file, and directory modes

Other

  • Added /mdx binary to .gitignore

Full Changelog: v1.0.0...v1.1.0

v1.0.0

13 Mar 16:11

Choose a tag to compare