Conditions | 2 |
Total Lines | 44 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from unittest import TestCase |
||
165 | def test_blockquote_bullet(self): |
||
166 | doc = self.conversion( |
||
167 | """ |
||
168 | > [!note] My title |
||
169 | > * **a** |
||
170 | > * b |
||
171 | > |
||
172 | > * c |
||
173 | """, |
||
174 | ) |
||
175 | text = convert_text( |
||
176 | doc, |
||
177 | input_format="panflute", |
||
178 | output_format="markdown", |
||
179 | ) |
||
180 | if version < (3, 6, 4): |
||
181 | self.assertEqual( |
||
182 | text, |
||
183 | """ |
||
184 | :::: note |
||
185 | ::: title |
||
186 | My title |
||
187 | ::: |
||
188 | |||
189 | - **a** |
||
190 | - b |
||
191 | - c |
||
192 | :::: |
||
193 | """.strip() |
||
194 | ) |
||
195 | else: |
||
196 | self.assertEqual( |
||
197 | text, |
||
198 | """ |
||
199 | :::: note |
||
200 | ::: title |
||
201 | My title |
||
202 | ::: |
||
203 | |||
204 | - **a** |
||
205 | - b |
||
206 | - c |
||
207 | :::: |
||
208 | """.strip() |
||
209 | ) |
||
210 |