Warning, /education/cantor/thirdparty/discount-2.2.6-patched/tests/html_comment.t is written in an unsupported language. File is not indexed.

0001 . tests/functions.sh
0002 
0003 title "html comments"
0004 
0005 rc=0
0006 MARKDOWN_FLAGS=
0007 
0008 try 'html comments' \
0009     '<!--
0010 **hi**
0011 -->' \
0012     '<!--
0013 **hi**
0014 -->'
0015     
0016 try 'comment with trailing text' '<!-- this is -->a test' \
0017 '<p><!-- this is -->a test</p>'
0018 
0019 COMMENTS='<!-- 1. -->line 1
0020 
0021 <!-- 2. -->line 2'
0022 
0023 try 'two comments' "$COMMENTS" \
0024 '<p><!-- 1. -->line 1</p>
0025 
0026 <p><!-- 2. -->line 2</p>'
0027 
0028 COMMENTS='<!-- 1. -->line 1
0029 <!-- 2. -->line 2'
0030 
0031 try 'two adjacent comments' "$COMMENTS" \
0032 '<p><!-- 1. -->line 1
0033 <!-- 2. -->line 2</p>'
0034 
0035 try 'comment, no white space' '<!--foo-->' '<!--foo-->'
0036 
0037 try 'comment, indented end with trailing text' \
0038 '<!--
0039     -->00000' \
0040 '<p><!--
0041     -->00000</p>'
0042 
0043 try 'comment with leading text' 'Text text text<!--
0044     -->' \
0045 '<p>Text text text<!--
0046     --></p>'
0047 
0048 summary $0
0049 exit $rc