diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-04-07 21:01:55 -0400 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2018-07-31 11:40:59 -0400 |
commit | cba86d6175d00b897d6f5c4b3fec640e7309de60 (patch) | |
tree | d91586e9e45ebcd09851e26cc0c09c6ddf6a842c /markdown/core.py | |
parent | 15acbdec8c9357b78435af707140b0278cf376b2 (diff) | |
download | markdown-cba86d6175d00b897d6f5c4b3fec640e7309de60.tar.gz markdown-cba86d6175d00b897d6f5c4b3fec640e7309de60.tar.bz2 markdown-cba86d6175d00b897d6f5c4b3fec640e7309de60.zip |
smart_emphasis keyword > legacy_em extension.
The smart_strong extension has been removed and its behavior is now the
default (smart em and smart strong are the default). The legacy_em
extension restores legacy behavior (no smart em or smart strong).
This completes the removal of keywords. All parser behavior is now
modified by extensions, not by keywords on the Markdown class.
Diffstat (limited to 'markdown/core.py')
-rw-r--r-- | markdown/core.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/markdown/core.py b/markdown/core.py index 2144f00..d25f20d 100644 --- a/markdown/core.py +++ b/markdown/core.py @@ -47,11 +47,6 @@ class Markdown(object): doc_tag = "div" # Element used to wrap document - later removed - option_defaults = { - 'tab_length': 4, - 'smart_emphasis': True, - } - output_formats = { 'html': to_html_string, 'xhtml': to_xhtml_string, @@ -73,13 +68,10 @@ class Markdown(object): * "xhtml": Outputs XHTML style tags. Default. * "html": Outputs HTML style tags. * tab_length: Length of tabs in the source. Default: 4 - * smart_emphasis: Treat `_connected_words_` intelligently Default: True """ - # Loop through kwargs and assign defaults - for option, default in self.option_defaults.items(): - setattr(self, option, kwargs.get(option, default)) + self.tab_length = kwargs.get('tab_length', 4) self.ESCAPED_CHARS = ['\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!'] |