| 1 |
"""Test cases for StripHTML.""" |
| 2 |
from .. import util |
| 3 |
|
| 4 |
|
| 5 |
class TestStripHTML(util.MdCase): |
| 6 |
"""Test legacy stripping in HTML.""" |
| 7 |
|
| 8 |
extension = ['pymdownx.striphtml'] |
| 9 |
extension_configs = {} |
| 10 |
|
| 11 |
def test_multiple_inline(self): |
| 12 |
"""Test multiple inline.""" |
| 13 |
|
| 14 |
self.check_markdown( |
| 15 |
r''' |
| 16 |
Comments test: |
| 17 |
<!-- BEGIN INCLUDE --> |
| 18 |
|
| 19 |
- One |
| 20 |
- Two |
| 21 |
- Three |
| 22 |
<!-- END INCLUDE --> |
| 23 |
|
| 24 |
## Paragraph |
| 25 |
|
| 26 |
<!-- BEGIN INCLUDE --> |
| 27 |
- One |
| 28 |
- Two |
| 29 |
- Three |
| 30 |
<!-- END INCLUDE --> |
| 31 |
Comments test end |
| 32 |
''', |
| 33 |
r''' |
| 34 |
<p>Comments test:</p> |
| 35 |
<ul> |
| 36 |
<li>One</li> |
| 37 |
<li>Two</li> |
| 38 |
<li>Three</li> |
| 39 |
</ul> |
| 40 |
<h2>Paragraph</h2> |
| 41 |
<ul> |
| 42 |
<li>One</li> |
| 43 |
<li>Two</li> |
| 44 |
<li>Three</li> |
| 45 |
</ul> |
| 46 |
<p>Comments test end</p> |
| 47 |
''', |
| 48 |
True |
| 49 |
) |