mq makes working with Markdown files as easy as jq makes working with JSON. Since LLM inputs are primarily in Markdown format, mq provides efficient tools for generating and processing the structured Markdown content that LLMs require. It's especially useful for:
Efficiently manipulate and process Markdown used in LLM prompts and outputs
Generate structured Markdown content optimized for LLM consumption, since Markdown serves as the primary input format for most language models
Extract, transform, and organize content across multiple documentation files
Quickly extract specific sections or patterns from Markdown documents
Apply consistent transformations across multiple Markdown files
Extract specific parts of your Markdown documents with ease
Apply transformations to your Markdown content
Simple and intuitive CLI for quick operations
Easily extendable with custom functions
Filter and transform content with many built-in functions and selectors
Interactive command-line REPL for testing and experimenting
VSCode Extension and Language Server Protocol (LSP) support