Skip to content

Commit ce7441b

Browse files
committed
Allow for id in figures
1 parent b068621 commit ce7441b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/tests/test_convertor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_image_html(self, convert):
8181
output = convert('html', 'sk', '![Masívna ryba](ryba.svg){#fig:ryba height=47mm}')
8282
output = output.replace('\n', ' ')
8383
print(output)
84-
assert re.match(r'<figure>.*</figure>', output) is not None
84+
assert re.match(r'<figure.*>.*</figure>', output) is not None
8585
assert re.match(r'.*<img.* src=".*ryba\.svg"', output) is not None
8686
assert re.match(r'.*<figcaption.*>.*Masívna ryba.*</figcaption>', output) is not None
8787

@@ -93,7 +93,7 @@ def test_image_html_multiline(self, convert):
9393
""")
9494
output = output.replace('\n', ' ')
9595
print(output)
96-
assert re.match(r'<figure>.*</figure>', output) is not None
96+
assert re.match(r'<figure.*>.*</figure>', output) is not None
9797
assert re.match(r'.*<img.* src=".*subor\.png"', output) is not None
9898
assert re.match(r'.*<figcaption.*Veľmi dlhý text\. Akože masívne\. Veľmi masívne\. Aj s newlinami\.', output) is not None
9999

0 commit comments

Comments
 (0)