Releases: Harsh-2002/mdx
Releases · Harsh-2002/mdx
v1.1.2
Full Changelog: v1.1.1...v1.1.2
Full Changelog: v1.1.1...v1.1.2
v1.1.1 — EPUB Export, Full-Text Search
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.mdFull-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 searchdocs 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
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/markdownheader so MFA-enabled sites (e.g. Cloudflare) return pre-converted markdown directly - Reads
X-Markdown-TokensandContent-Signalresponse headers - Warns when sites signal
ai-input=no - New
--tokensflag shows estimated LLM token count - HTML sanitization before
--rawconversion (strips<script>,<iframe>,javascript:URLs, etc.) - Richer front matter:
og:image,og:url,site_namefields added
Smart server (mdx serve)
- AI agents sending
Accept: text/markdownget raw markdown instead of HTML - Responds with
Content-Type: text/markdown,X-Markdown-Tokens, andVary: Acceptheaders - Works in single-file, multi-file, and directory modes
Other
- Added
/mdxbinary to.gitignore
Full Changelog: v1.0.0...v1.1.0
v1.0.0
Full Changelog: https://github.com/Harsh-2002/mdx/commits/v1.0.0