Warning, /education/cantor/thirdparty/discount-2.2.6-patched/tests/superscript.t is written in an unsupported language. File is not indexed.

0001 . tests/functions.sh
0002 
0003 title "superscript"
0004 
0005 rc=0
0006 MARKDOWN_FLAGS=0x0; export MARKDOWN_FLAGS
0007 
0008 try -frelax  'A^B -> A<sup>B</sup> (-frelax)' 'A^B' '<p>A<sup>B</sup></p>'
0009 try -fstrict 'A^B != A<sup>B</sup> (-fstrict)' 'A^B' '<p>A^B</p>'
0010 try -fnosuperscript 'A^B != A<sup>B</sup> (-fnosuperscript)' 'A^B' '<p>A^B</p>'
0011 try -frelax 'A^B in link title' '[link](here "A^B")' '<p><a href="here" title="A^B">link</a></p>'
0012 try 'A^(B+2)C^2' 'A^(B+2)C^2' '<p>A<sup>B+2</sup>C<sup>2</sup></p>'
0013 try 'A^((B+2))C^2' 'A^((B+2))C^2' '<p>A<sup>(B+2)</sup>C<sup>2</sup></p>'
0014 try 'A^B+C^D' 'A^B+C^D' '<p>A<sup>B</sup>+C<sup>D</sup></p>'
0015 try 'A^B w/ A in link' '[A](C)^B' '<p><a href="C">A</a><sup>B</sup></p>'
0016 try 'A^B w/ A in html' '<em>A</em>^B' '<p><em>A</em><sup>B</sup></p>'
0017 try 'A^B w/ ^B in link' 'A[^B](C)' '<p>A<a href="C">^B</a></p>'
0018 try 'A^B w/ ^B in incomplete link' 'A[^B]' '<p>A[^B]</p>'
0019 
0020 summary $0
0021 exit $rc