3 ms·
Ask HN: 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 3y agoNot really what you asked, but there are lots of tools for markdown to HTML, and lots of HTML parsers.
- verdverm 3y agoCheck out ContentLayer, not exactly command line (iirc), but not hard to wrap with something like commander.js either
- eevilspock 3y agohttps://markdowndb.com https://markdowndb.com