Files
discount/tests/reddit.t
T
david parsons 40e61f6c5a I messed up the endash & emdash smartypants versions when I wrote discount,
and didn't realize I'd done that until John Foerch sent me mail today pointing
out the defect.  Whoops!
2011-07-31 11:14:42 -07:00

28 lines
563 B
Raku

. tests/functions.sh
title "bugs & misfeatures found during the Reddit rollout"
rc=0
MARKDOWN_FLAGS=
try 'smiley faces?' '[8-9] <]:-( x ---> [4]' \
'<p>[8-9] &lt;]:-( x &mdash;> [4]</p>'
try 'really long ETX headers' \
'#####################################################hi' \
'<h6>###############################################hi</h6>'
try 'unescaping " " inside `code`' \
'`foo
bar`' \
'<p><code>foo
bar</code></p>'
try 'unescaping " " inside []()' \
'[foo](bar
bar)' \
'<p><a href="bar %0Abar">foo</a></p>'
summary $0
exit $rc