1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
|
<h1 id="html-blocks">HTML blocks</h1>
<h3 id="example-116">Example 116</h3>
<table><tr><td>
<pre>
**Hello**,
<p><em>world</em>.
</pre></p>
</td></tr></table>
<h3 id="example-117">Example 117</h3>
<table>
<tr>
<td>
hi
</td>
</tr>
</table>
<p>okay.</p>
<h3 id="example-118">Example 118</h3>
<div>
*hello*
<foo><a>
<h3 id="example-119">Example 119</h3>
</div>
*foo*
<h3 id="example-120">Example 120</h3>
<DIV CLASS="foo">
<p><em>Markdown</em></p>
</DIV>
<h3 id="example-121">Example 121</h3>
<div id="foo"
class="bar">
</div>
<h3 id="example-122">Example 122</h3>
<div id="foo" class="bar
baz">
</div>
<h3 id="example-123">Example 123</h3>
<div>
*foo*
<p><em>bar</em></p>
<h3 id="example-124">Example 124</h3>
<div id="foo"
*hi*
<h3 id="example-125">Example 125</h3>
<div class
foo
<h3 id="example-126">Example 126</h3>
<div *???-&&&-<---
*foo*
<h3 id="example-127">Example 127</h3>
<div><a href="bar">*foo*</a></div>
<h3 id="example-128">Example 128</h3>
<table><tr><td>
foo
</td></tr></table>
<h3 id="example-129">Example 129</h3>
<div></div>
``` c
int x = 33;
```
<h3 id="example-130">Example 130</h3>
<a href="foo">
*bar*
</a>
<h3 id="example-131">Example 131</h3>
<Warning>
*bar*
</Warning>
<h3 id="example-132">Example 132</h3>
<i class="foo">
*bar*
</i>
<h3 id="example-133">Example 133</h3>
</ins>
*bar*
<h3 id="example-134">Example 134</h3>
<del>
*foo*
</del>
<h3 id="example-135">Example 135</h3>
<del>
<p><em>foo</em></p>
</del>
<h3 id="example-136">Example 136</h3>
<p><del><em>foo</em></del></p>
<h3 id="example-137">Example 137</h3>
<pre language="haskell"><code>
import Text.HTML.TagSoup
main :: IO ()
main = print $ parseTags tags
</code></pre>
<p>okay</p>
<h3 id="example-138">Example 138</h3>
<script type="text/javascript">
// JavaScript example
document.getElementById("demo").innerHTML = "Hello JavaScript!";
</script>
<p>okay</p>
<h3 id="example-139">Example 139</h3>
<style
type="text/css">
h1 {color:red;}
p {color:blue;}
</style>
<p>okay</p>
<h3 id="example-141">Example 141</h3>
<blockquote>
<div>
foo
</blockquote>
<p>bar</p>
<h3 id="example-142">Example 142</h3>
<ul>
<li>
<div>
</li>
<li>foo</li>
</ul>
<h3 id="example-143">Example 143</h3>
<style>p{color:red;}</style>
<p><em>foo</em></p>
<h3 id="example-144">Example 144</h3>
<!-- foo -->*bar*
<p><em>baz</em></p>
<h3 id="example-145">Example 145</h3>
<script>
foo
</script>1. *bar*
<h3 id="example-146">Example 146</h3>
<!-- Foo
bar
baz -->
<p>okay</p>
<h3 id="example-147">Example 147</h3>
<?php
echo '>';
?>
<p>okay</p>
<h3 id="example-148">Example 148</h3>
<!DOCTYPE html>
<h3 id="example-149">Example 149</h3>
<![CDATA[
function matchwo(a,b)
{
if (a < b && a < 0) then {
return 1;
} else {
return 0;
}
}
]]>
<p>okay</p>
<h3 id="example-150">Example 150</h3>
<!-- foo -->
<pre><code><!-- foo -->
</code></pre>
<h3 id="example-151">Example 151</h3>
<div>
<pre><code><div>
</code></pre>
<h3 id="example-152">Example 152</h3>
<p>Foo</p>
<div>
bar
</div>
<h3 id="example-153">Example 153</h3>
<div>
bar
</div>
*foo*
<h3 id="example-154">Example 154</h3>
<p>Foo
<a href="bar">
baz</p>
<h3 id="example-155">Example 155</h3>
<div>
<p><em>Emphasized</em> text.</p>
</div>
<h3 id="example-156">Example 156</h3>
<div>
*Emphasized* text.
</div>
<h3 id="example-157">Example 157</h3>
<table>
<tr>
<td>
Hi
</td>
</tr>
</table>
<h3 id="example-158">Example 158</h3>
<table>
<tr>
<pre><code><td>
Hi
</td>
</code></pre>
</tr>
</table>
<h3 id="example-140">Example 140</h3>
<p>If there is no matching end tag, the block will end at the end of the document (or the enclosing block quote or list item):</p>
<style
type="text/css">
foo
|