mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Test against HTML block endings
This commit is contained in:
337
tests/data/markup_end_conditions.html
Normal file
337
tests/data/markup_end_conditions.html
Normal file
@@ -0,0 +1,337 @@
|
||||
<style> foo </script>
|
||||
<p>bar
|
||||
</script></p>
|
||||
<p>foo</p>
|
||||
<style> foo -->
|
||||
bar
|
||||
</script>
|
||||
<p>foo</p>
|
||||
<style> foo ?>
|
||||
bar
|
||||
</script>
|
||||
<p>foo</p>
|
||||
<style> foo >
|
||||
bar
|
||||
</script>
|
||||
<p>foo</p>
|
||||
<style> foo ]]>
|
||||
bar
|
||||
</script>
|
||||
<p>foo</p>
|
||||
<style> foo
|
||||
|
||||
bar
|
||||
</script>
|
||||
<p>foo</p>
|
||||
<hr />
|
||||
<!-- foo </script>
|
||||
bar
|
||||
-->
|
||||
<p>foo</p>
|
||||
<!-- foo -->
|
||||
<p>bar
|
||||
--></p>
|
||||
<p>foo</p>
|
||||
<!-- foo ?>
|
||||
bar
|
||||
-->
|
||||
<p>foo</p>
|
||||
<!-- foo >
|
||||
bar
|
||||
-->
|
||||
<p>foo</p>
|
||||
<!-- foo ]]>
|
||||
bar
|
||||
-->
|
||||
<p>foo</p>
|
||||
<!-- foo
|
||||
|
||||
bar
|
||||
-->
|
||||
<p>foo</p>
|
||||
<hr />
|
||||
<?php foo </script>
|
||||
bar
|
||||
?>
|
||||
<p>foo</p>
|
||||
<?php foo -->
|
||||
bar
|
||||
?>
|
||||
<p>foo</p>
|
||||
<?php foo ?>
|
||||
<p>bar
|
||||
?></p>
|
||||
<p>foo</p>
|
||||
<?php foo >
|
||||
bar
|
||||
?>
|
||||
<p>foo</p>
|
||||
<?php foo ]]>
|
||||
bar
|
||||
?>
|
||||
<p>foo</p>
|
||||
<?php foo
|
||||
|
||||
bar
|
||||
?>
|
||||
<p>foo</p>
|
||||
<hr />
|
||||
<!A foo </script>
|
||||
<p>bar</p>
|
||||
<blockquote>
|
||||
</blockquote>
|
||||
<p>foo</p>
|
||||
<!A foo -->
|
||||
<p>bar</p>
|
||||
<blockquote>
|
||||
</blockquote>
|
||||
<p>foo</p>
|
||||
<!A foo ?>
|
||||
<p>bar</p>
|
||||
<blockquote>
|
||||
</blockquote>
|
||||
<p>foo</p>
|
||||
<!A foo >
|
||||
<p>bar</p>
|
||||
<blockquote>
|
||||
</blockquote>
|
||||
<p>foo</p>
|
||||
<!A foo ]]>
|
||||
<p>bar</p>
|
||||
<blockquote>
|
||||
</blockquote>
|
||||
<p>foo</p>
|
||||
<!A foo
|
||||
|
||||
bar
|
||||
>
|
||||
<p>foo</p>
|
||||
<hr />
|
||||
<![CDATA[ foo </script>
|
||||
bar
|
||||
]]>
|
||||
<p>foo</p>
|
||||
<![CDATA[ foo -->
|
||||
bar
|
||||
]]>
|
||||
<p>foo</p>
|
||||
<![CDATA[ foo ?>
|
||||
bar
|
||||
]]>
|
||||
<p>foo</p>
|
||||
<![CDATA[ foo >
|
||||
bar
|
||||
]]>
|
||||
<p>foo</p>
|
||||
<![CDATA[ foo ]]>
|
||||
<p>bar
|
||||
]]></p>
|
||||
<p>foo</p>
|
||||
<![CDATA[ foo
|
||||
|
||||
bar
|
||||
]]>
|
||||
<p>foo</p>
|
||||
<hr />
|
||||
<body> foo </script>
|
||||
bar
|
||||
<p>foo</p>
|
||||
<body> foo -->
|
||||
bar
|
||||
<p>foo</p>
|
||||
<body> foo ?>
|
||||
bar
|
||||
<p>foo</p>
|
||||
<body> foo >
|
||||
bar
|
||||
<p>foo</p>
|
||||
<body> foo ]]>
|
||||
bar
|
||||
<p>foo</p>
|
||||
<body> foo
|
||||
<p>bar</p>
|
||||
<p>foo</p>
|
||||
<hr />
|
||||
<style> foo
|
||||
</script>
|
||||
<p>bar
|
||||
</script></p>
|
||||
<p>foo</p>
|
||||
<style> foo
|
||||
-->
|
||||
bar
|
||||
</script>
|
||||
<p>foo</p>
|
||||
<style> foo
|
||||
?>
|
||||
bar
|
||||
</script>
|
||||
<p>foo</p>
|
||||
<style> foo
|
||||
>
|
||||
bar
|
||||
</script>
|
||||
<p>foo</p>
|
||||
<style> foo
|
||||
]]>
|
||||
bar
|
||||
</script>
|
||||
<p>foo</p>
|
||||
<style> foo
|
||||
|
||||
bar
|
||||
</script>
|
||||
<p>foo</p>
|
||||
<hr />
|
||||
<!-- foo
|
||||
</script>
|
||||
bar
|
||||
-->
|
||||
<p>foo</p>
|
||||
<!-- foo
|
||||
-->
|
||||
<p>bar
|
||||
--></p>
|
||||
<p>foo</p>
|
||||
<!-- foo
|
||||
?>
|
||||
bar
|
||||
-->
|
||||
<p>foo</p>
|
||||
<!-- foo
|
||||
>
|
||||
bar
|
||||
-->
|
||||
<p>foo</p>
|
||||
<!-- foo
|
||||
]]>
|
||||
bar
|
||||
-->
|
||||
<p>foo</p>
|
||||
<!-- foo
|
||||
|
||||
bar
|
||||
-->
|
||||
<p>foo</p>
|
||||
<hr />
|
||||
<?php foo
|
||||
</script>
|
||||
bar
|
||||
?>
|
||||
<p>foo</p>
|
||||
<?php foo
|
||||
-->
|
||||
bar
|
||||
?>
|
||||
<p>foo</p>
|
||||
<?php foo
|
||||
?>
|
||||
<p>bar
|
||||
?></p>
|
||||
<p>foo</p>
|
||||
<?php foo
|
||||
>
|
||||
bar
|
||||
?>
|
||||
<p>foo</p>
|
||||
<?php foo
|
||||
]]>
|
||||
bar
|
||||
?>
|
||||
<p>foo</p>
|
||||
<?php foo
|
||||
|
||||
bar
|
||||
?>
|
||||
<p>foo</p>
|
||||
<hr />
|
||||
<!A foo
|
||||
</script>
|
||||
<p>bar</p>
|
||||
<blockquote>
|
||||
</blockquote>
|
||||
<p>foo</p>
|
||||
<!A foo
|
||||
-->
|
||||
<p>bar</p>
|
||||
<blockquote>
|
||||
</blockquote>
|
||||
<p>foo</p>
|
||||
<!A foo
|
||||
?>
|
||||
<p>bar</p>
|
||||
<blockquote>
|
||||
</blockquote>
|
||||
<p>foo</p>
|
||||
<!A foo
|
||||
>
|
||||
<p>bar</p>
|
||||
<blockquote>
|
||||
</blockquote>
|
||||
<p>foo</p>
|
||||
<!A foo
|
||||
]]>
|
||||
<p>bar</p>
|
||||
<blockquote>
|
||||
</blockquote>
|
||||
<p>foo</p>
|
||||
<!A foo
|
||||
|
||||
bar
|
||||
>
|
||||
<p>foo</p>
|
||||
<hr />
|
||||
<![CDATA[ foo
|
||||
</script>
|
||||
bar
|
||||
]]>
|
||||
<p>foo</p>
|
||||
<![CDATA[ foo
|
||||
-->
|
||||
bar
|
||||
]]>
|
||||
<p>foo</p>
|
||||
<![CDATA[ foo
|
||||
?>
|
||||
bar
|
||||
]]>
|
||||
<p>foo</p>
|
||||
<![CDATA[ foo
|
||||
>
|
||||
bar
|
||||
]]>
|
||||
<p>foo</p>
|
||||
<![CDATA[ foo
|
||||
]]>
|
||||
<p>bar
|
||||
]]></p>
|
||||
<p>foo</p>
|
||||
<![CDATA[ foo
|
||||
|
||||
bar
|
||||
]]>
|
||||
<p>foo</p>
|
||||
<hr />
|
||||
<body> foo
|
||||
</script>
|
||||
bar
|
||||
<p>foo</p>
|
||||
<body> foo
|
||||
-->
|
||||
bar
|
||||
<p>foo</p>
|
||||
<body> foo
|
||||
?>
|
||||
bar
|
||||
<p>foo</p>
|
||||
<body> foo
|
||||
>
|
||||
bar
|
||||
<p>foo</p>
|
||||
<body> foo
|
||||
]]>
|
||||
bar
|
||||
<p>foo</p>
|
||||
<body> foo
|
||||
<p>bar</p>
|
||||
<p>foo</p>
|
||||
Reference in New Issue
Block a user