#!/usr/bin/env bash # # Format markdown and pass it to htmlurls to extract URLs from it. # # Author: Tom Ryder # Copyright: 2016 # License: Public domain # # Check we have the programs we need hash pandoc htmlurls || exit # Pipe the output of pandoc(1) on our args ... pandoc -f markdown -t html -- "${@:-/dev/stdin}" | # ... into our own htmlurls htmlurls