From: Paul Hänsch Date: Fri, 30 Aug 2024 19:42:54 +0000 (+0200) Subject: improved tests for nested emphasis X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=42028f563c652ea0cbdd069940b09e58771ea4e5;p=cgilite improved tests for nested emphasis --- diff --git a/tests-markdown.sh b/tests-markdown.sh index ff56c02..2bbcf5d 100755 --- a/tests-markdown.sh +++ b/tests-markdown.sh @@ -1,6 +1,6 @@ #!/bin/sh -runtimes="gawk bawk goawk" +runtimes="gawk bawk mawk goawk" BR=' ' @@ -54,6 +54,13 @@ assert '***strem***' '

strem

' "strong em" assert '***str**em*' '

strem

' "em strong" assert '_**strem**_' '

strem

' "em strong" +assert '*foo**str**bar**str**qua*' '

foostrbarstrqua

' 'em strong asterisk' +assert '**foo*em*bar*em*qua**' '

fooembaremqua

' 'strong em asterisk' + +assert '_foo__str__bar__str__qua_' '

foo__str__bar__str__qua

' 'em embedded underscore' +assert '__foo_em_bar_em_qua__' '

foo_em_bar_em_qua

' 'strong embedded underscore' +assert '_**str**foo**str**_' '

strfoostr

' 'em strong mixed' + assert '_foo_-> bar' '

foo→ bar

' 'arrow' assert '`_foo_-> bar`' '

_foo_-> bar

' 'arrow' assert ' <- comment' '

<!-- comment --> ← comment

' 'arrow'