Add test to ensure that all markdown extensions are present

This commit is contained in:
Kovid Goyal 2019-02-07 10:38:03 +05:30
parent 6b64c0111d
commit 362a3f4088
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -270,7 +270,8 @@ class BuildTest(unittest.TestCase):
def test_markdown(self):
from calibre.ebooks.markdown import Markdown
Markdown(extensions=['extra'])
from calibre.ebooks.conversion.plugins.txt_input import MD_EXTENSIONS
Markdown(extensions=MD_EXTENSIONS)
from calibre.library.comments import sanitize_comments_html
sanitize_comments_html(b'''<script>moo</script>xxx<img src="http://moo.com/x.jpg">''')