Warning, /education/cantor/thirdparty/discount-2.2.6-patched/tests/safelinks.t is written in an unsupported language. File is not indexed.
0001 . tests/functions.sh 0002 0003 title "safe links" 0004 0005 rc=0 0006 MARKDOWN_FLAGS= 0007 0008 try -fsafelink 'bogus url' '[test](bad:protocol)' \ 0009 '<p>[test](bad:protocol)</p>' 0010 try -fsafelink 'illegal url' '[test](b?d:protocol)' \ 0011 '<p><a href="b?d:protocol">test</a></p>' 0012 try -fsafelink 'url fragment (1)' '[test](#bar)' '<p><a href="#bar">test</a></p>' 0013 try -fsafelink 'url fragment (2)' '[test](/bar)' '<p><a href="/bar">test</a></p>' 0014 try -fnosafelink 'bogus url (-fnosafelink)' '[test](bad:protocol)' '<p><a href="bad:protocol">test</a></p>' 0015 0016 0017 summary $0 0018 exit $rc