local md comp="$2" msg="$3"
printf "%3i: %s ... " $acnt "$msg"
- for proc in gawk bawk; do
+ for proc in gawk bawk mawk; do
printf '%s ' $proc
md="$(printf '%s' "$1" |md_"$proc")"
if [ "$md" != "$comp" ]; then
assert '<!-- comment --> <- comment' '<p><!-- comment --> ← comment</p>' 'arrow'
# Escaping
-assert "©" "<p>©</p>" "escape"
-assert "\©" "<p>&copy;</p>" "escape"
-assert "AT&T" "<p>AT&T</p>" "escape"
+assert '©' "<p>©</p>" "escape"
+assert '\©' "<p>&copy;</p>" "escape"
+assert 'AT&T' "<p>AT&T</p>" "escape"
assert '`©`' "<p><code>&copy;</code></p>" "code span escape"
# Automatic Links
but &shy; <escaped></code></pre>' \
"indented code block"
+assert ' indented code will
+ not be
+
+ *formatted*
+ but ­ <escaped>' \
+'<pre><code>indented code will
+not be
+
+*formatted*
+but &shy; <escaped></code></pre>' \
+"indented code block"
+
assert ':::: tag
fenced _divs_ are regular text
</section>' \
'Heading arbitrary'
-assert '### Heading three ######' \
+assert '###Heading three ######' \
'<section class="h3" id="0.0.1:Heading%20three"><h3>Heading three<a class="anchor" href="#0.0.1:Heading%20three"></a></h3>
</section>' \
'Heading arbitrary'
### sub sub sub ###
-## sub2 bar {x}
+##sub2 bar {x}
' \
'<section class="h2" id="0.1:foo"><h2>foo<a class="anchor" href="#0.1:foo"></a></h2>
</section><section class="h1" id="1:bar"><h1>bar<a class="anchor" href="#1:bar"></a></h1>