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)

This commit is contained in:
Kovid Goyal 2015-11-03 07:17:08 +05:30
parent 46500bb183
commit 7304584c58

View File

@ -11,7 +11,10 @@ from calibre.customize.conversion import InputFormatPlugin, OptionRecommendation
MD_EXTENSIONS = { MD_EXTENSIONS = {
'abbr': _('Abbreviations'), 'abbr': _('Abbreviations'),
'admonition': _('Support admonitions'),
'attr_list': _('Add attribute to HTML tags'),
'def_list': _('Definition lists'), 'def_list': _('Definition lists'),
'extra': _('Enables various common extensions'),
'fenced_code': _('Alternative code block syntax'), 'fenced_code': _('Alternative code block syntax'),
'footnotes': _('Footnotes'), 'footnotes': _('Footnotes'),
'headerid': _('Allow ids as part of a header'), 'headerid': _('Allow ids as part of a header'),
@ -26,7 +29,7 @@ class TXTInput(InputFormatPlugin):
name = 'TXT Input' name = 'TXT Input'
author = 'John Schember' author = 'John Schember'
description = 'Convert TXT files to HTML' 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([ options = set([
OptionRecommendation(name='paragraph_type', recommended_value='auto', OptionRecommendation(name='paragraph_type', recommended_value='auto',