From 7304584c585bafe31147c4d9e646fc1bb8a5f0da Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 Nov 2015 07:17:08 +0530 Subject: [PATCH] Markdown input: Allow the "extra" convenience extension as a shortcut for enabling multiple other extensions. Also ad the Attribute List and Admonition extensions. Fixes #1512461 [[Enhancement] Add extra to allowed markdown extensions](https://bugs.launchpad.net/calibre/+bug/1512461) --- src/calibre/ebooks/conversion/plugins/txt_input.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/conversion/plugins/txt_input.py b/src/calibre/ebooks/conversion/plugins/txt_input.py index 5cab2a1a96..1fdc05d729 100644 --- a/src/calibre/ebooks/conversion/plugins/txt_input.py +++ b/src/calibre/ebooks/conversion/plugins/txt_input.py @@ -11,7 +11,10 @@ from calibre.customize.conversion import InputFormatPlugin, OptionRecommendation MD_EXTENSIONS = { 'abbr': _('Abbreviations'), + 'admonition': _('Support admonitions'), + 'attr_list': _('Add attribute to HTML tags'), 'def_list': _('Definition lists'), + 'extra': _('Enables various common extensions'), 'fenced_code': _('Alternative code block syntax'), 'footnotes': _('Footnotes'), 'headerid': _('Allow ids as part of a header'), @@ -26,7 +29,7 @@ class TXTInput(InputFormatPlugin): name = 'TXT Input' author = 'John Schember' description = 'Convert TXT files to HTML' - file_types = set(['txt', 'txtz', 'text', 'md', 'textile', 'markdown']) + file_types = {'txt', 'txtz', 'text', 'md', 'textile', 'markdown'} options = set([ OptionRecommendation(name='paragraph_type', recommended_value='auto',