mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-26 06:56:06 +01:00
Add test to ensure that all markdown extensions are present
This commit is contained in:
parent
6b64c0111d
commit
362a3f4088
1 changed files with 2 additions and 1 deletions
|
|
@ -270,7 +270,8 @@ def test_terminal(self):
|
|||
|
||||
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">''')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue