. tests/functions.sh title "html blocks" rc=0 MARKDOWN_FLAGS= try 'self-closing block tags (hr)' \ '
text
' try 'self-closing block tags (hr/)' \ 'text
' try 'no smartypants inside tags (#1)' \ '<b>hi!</b>
' try -fnohtml 'malformed tag injection' '<x <script>
' try -fhtml 'allow html with -fhtml' 'hi!' 'hi!
' # check that nested raw html blocks terminate properly. # BLOCK1SRC='Markdown works fine *here*. *And* here.Markdown works fine here.
And here.
Markdown here is not parsed by RDiscount.
Nor in this paragraph, and there are no paragraph breaks.
' try 'nested html blocks (1)' "$BLOCK1SRC" "$BLOCK1OUT" try 'nested html blocks (2)' \ 'this is
a test' \ 'this is
a test
' try 'unclosed block' 'here we go!' '
here we go!
' try '' '' try 'code inside a blockquote' \ '>' \ '' try 'multi-line html with trailing text' \ '
test test test test test test
+' \ 'test test test test test test
+
' summary $0 exit $rc