A jq-like Markdown query language for command-line processing
A jq-like Markdown query language for command-line processing. mq parses Markdown into a syntax tree and exposes a small functional query language over it, so documents can be filtered, transformed and reformatted from the command line the way jq handles JSON. It also provides a REPL and can convert HTML to Markdown.
A jq-like Markdown query language for command-line processing. mq parses Markdown into a syntax tree and exposes a small functional query language over it, so documents can be filtered, transformed and reformatted from the command line the way jq handles JSON. It also provides a REPL and can convert HTML to Markdown.
To install mq, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install mq
To see what files were installed by mq, run:
port contents mq
To later upgrade mq, run:
sudo port selfupdate && sudo port upgrade mq
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.