blob: 18cd07f493b53eb24ad4a689f4e9c5d6af51a8e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env bash
#
# Format markdown and pass it to htmlurls to extract URLs from it.
#
# Author: Tom Ryder <tom@sanctum.geek.nz>
# Copyright: 2016
# License: Public domain
#
# Check we have the programs we need
hash markdown htmlurls || exit
# Pipe the output of markdown(1) on our args ...
markdown "${@:-/dev/stdin}" |
# ... into our own htmlurls
htmlurls
|