. tests/functions.sh title "Bugs & misfeatures reported by Mike Schiraldi" rc=0 MARKDOWN_FLAGS= try -fnohtml 'breaks with -fnohtml' 'foo bar' '

foo
bar

' try 'links with trailing \)' \ '[foo](http://en.wikipedia.org/wiki/Link_(film\))' \ '

foo

' try -fautolink '(url) with -fautolink' \ '(http://tsfr.org)' \ '

(http://tsfr.org)

' try 'single #' \ '#' \ '

#

' try -frelax '* processing with -frelax' \ '2*4 = 8 * 1 = 2**3' \ '

2*4 = 8 * 1 = 2**3

' try -fnopants '[]() with a single quote mark' \ '[Poe'"'"'s law](http://rationalwiki.com/wiki/Poe'"'"'s_Law)' \ '

Poe'"'"'s law

' try -fautolink 'autolink url with escaped spaces' \ 'http://\(here\ I\ am\)' \ '

http://(here I am)

' try -fautolink 'autolink café_racer' \ 'http://en.wikipedia.org/wiki/café_racer' \ '

http://en.wikipedia.org/wiki/caf%C3%A9_racer

' try -fautolink 'autolink url with arguments' \ 'http://foo.bar?a&b=c' \ '

http://foo.bar?a&b=c

' try '\( escapes in []()' \ '[foo](http://a.com/\(foo\))' \ '

foo

' try -fautolink 'autolink url with escaped ()' \ 'http://a.com/\(foo\)' \ '

http://a.com/(foo)

' try -fautolink 'autolink url with escaped \' \ 'http://a.com/\\\)' \ '

http://a.com/\)

' try -fautolink 'autolink url with -' \ 'http://experts-exchange.com' \ '

http://experts-exchange.com

' try -fautolink 'autolink url with +' \ 'http://www67.wolframalpha.com/input/?i=how+old+was+jfk+jr+when+jfk+died' \ '

http://www67.wolframalpha.com/input/?i=how+old+was+jfk+jr+when+jfk+died

' try -fautolink 'autolink url with &' \ 'http://foo.bar?a&b=c' \ '

http://foo.bar?a&b=c

' try -fautolink 'autolink url with ,' \ 'http://www.spiegel.de/international/europe/0,1518,626171,00.html' \ '

http://www.spiegel.de/international/europe/0,1518,626171,00.html

' try -fautolink 'autolink url with : & ;' \ 'http://www.biblegateway.com/passage/?search=Matthew%205:29-30;&version=31;' \ '

http://www.biblegateway.com/passage/?search=Matthew%205:29-30;&version=31;

' Q="'" try -fautolink 'security hole with \" in []()' \ '[XSS](/ "\"=\"\"onmouseover='$Q'alert(String.fromCharCode(88,83,83))'$Q'")' \ '

XSS

' try -fautolink 'autolink and prefix fragment' \ 'xxxxxxx http://x.com/ xxx xxxxht' \ '

xxxxxxx http://x.com/

xxx xxxxht

' summary $0 exit $rc