. tests/functions.sh title 'Reddit-style automatic links' rc=0 try -fautolink 'single link' \ 'http://www.pell.portland.or.us/~orc/Code/discount' \ '
http://www.pell.portland.or.us/~orc/Code/discount
' try -fautolink '[!](http://a.com "http://b.com")' \ '[!](http://a.com "http://b.com")' \ '' try -fautolink 'link surrounded by text' \ 'here http://it is?' \ 'here http://it is?
' try -fautolink 'naked @' '@' '@
' try -fautolink 'parenthesised (url)' \ '(http://here)' \ '' try -fautolink 'token with trailing @' 'orc@' 'orc@
' summary $0 exit $rc