blob: 2fe49adf8593985766dbdbe3dfc3e1dd862a5ca0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
#
# Format markdown and pass it to hurl to extract URLs from it.
#
# Author: Tom Ryder <tom@sanctum.geek.nz>
# Copyright: 2016
# License: Public domain
#
# Pipe the output of pandoc(1) on our args ...
pandoc -f markdown -t html -- "${@:-/dev/stdin}" |
# ... into our own hurl
hurl
|