A jq-like command-line tool for efficient markdown processing.
Project details
MQ is a powerful command-line tool designed for markdown processing, offering a jq-like interface. It simplifies the workflow for developers and writers dealing with markdown, ensuring fast and efficient document manipulation. Whether it's formatting, parsing, or transforming markdown files, MQ enhances productivity through its intuitive command-line features.
mq is a powerful command-line tool designed for processing Markdown files, utilizing a syntax reminiscent of jq. Developed in Rust, it allows for efficient slicing, filtering, mapping, and transforming of structured data. With an intuitive command-line interface, mq empowers users to manipulate and analyze Markdown content seamlessly.
Given that most LLM inputs are in Markdown format, mq equips users with the tools needed to generate and process the structured content essential for language models.
mq-dbg) for hands-on inspection and step-through of queries.mq- in the ~/.mq/bin/ directory.To perform simple tasks with mq, refer to the following examples:
# Extract all headings from a Markdown document
mq '.h' README.md
# Get code blocks containing "name"
mq '.code | select(contains("name"))' example.md
# Extract URLs from links in a document
mq '.link.url' README.md
For more comprehensive usage scenarios and options, please consult the full documentation. Additionally, a collection of practical examples can be found in the Example Guide.
mq can be augmented further by integrating with several external tools, including:
Comments
0Start the conversation
Share the first comment.