HACKER Q&A
📣 miohtama

Markdown command line utilities similar to Jq and Grep


Are there any command line and shell tools like jq and grep, but for extracting data from markdown documents?

For doing structural text analysis like

- Getting content under a heading

- Extracting all headings

- Iterating links

... and so on.


  👤 marshmellman Accepted Answer ✓
Not really what you asked, but there are lots of tools for markdown to HTML, and lots of HTML parsers.

👤 eevilspock

👤 verdverm
Check out ContentLayer, not exactly command line (iirc), but not hard to wrap with something like commander.js either