"""Test cases for Quotes.""" from .. import util class TestQuotes(util.MdCase): """Test cases for repo link shortening.""" extension = [ 'pymdownx.superfences', 'pymdownx.quotes', ] extension_configs = { 'pymdownx.quotes': { 'callouts': True } } def test_separate_quotes(self): """Test separate quotes.""" self.check_markdown( """ > This is a paragraph > This is another paragraph. """, """
This is a paragraph
""", True ) def test_together_quotes(self): """Test quotes together.""" self.check_markdown( """ > This is a paragraph > > This is another paragraph. """, """This is another paragraph.
""", True ) def test_callout(self): """Test callout.""" self.check_markdown( """ > [!note] > Here is a note """, """This is a paragraph
This is another paragraph.
Note
Here is a note
Note
Here is a note
Here's a tip
Use a custom title!
I'm collapsible.
I'm collapsible.
Note
This is a note
""", True ) def test_superfences(self): """Test Quotes with SuperFences.""" self.check_markdown( """ This will work. > ``` > Test > > Test > ``` This will not. > ``` > Test > Test > ``` """, """Note
This is a note
This will work.
Test Test
This will not.
``` Test
""", True ) def test_multi_class(self): """Test multiple classes.""" self.check_markdown( """ > [!note | inline | end] > This is a note """, """Test ```
Note
This is a note
Note
This is a note
Note
Content
Danger
Content
Important
Content Content
Content
Tip