Nodes
The nodes
in mq allows you to access and manipulate all Markdown nodes as a single flat array.
Basic Usage
The nodes
filter returns an array of all nodes in a Markdown document:
nodes
Examples
Finding all headings
nodes | select(.h)
Converting all text to uppercase
nodes | map(upcase)
Counting nodes by type
nodes | len()