mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
and didn't realize I'd done that until John Foerch sent me mail today pointing out the defect. Whoops!
28 lines
563 B
Raku
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] <]:-( x —> [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
|