Support inline SVGs (don't break on title in inline SVG).

This commit is contained in:
Stuart Axon 2019-10-11 00:29:00 +01:00
commit eaccca52dd
5 changed files with 30 additions and 1 deletions

View file

@ -764,3 +764,10 @@ class HTMLReaderTest(ReaderTest):
}
self.assertDictHasSubset(page.metadata, expected)
def test_article_with_inline_svg(self):
page = self.read_file(path='article_with_inline_svg.html')
expected = {
'title': 'Article with an inline SVG',
}
self.assertDictHasSubset(page.metadata, expected)