diff options
author | Isaac Muse <faceless.shop@gmail.com> | 2017-01-19 06:51:06 -0700 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2017-01-19 08:51:06 -0500 |
commit | c70b2c4154d9b6e46f282c1f212c52e9fbfa5a07 (patch) | |
tree | 3a304d44324a5d0c9b8eabff7a86cc777163b62a /markdown/__init__.py | |
parent | b52293b2858138231795aa72aac1cf4799eb8da9 (diff) | |
download | markdown-c70b2c4154d9b6e46f282c1f212c52e9fbfa5a07.tar.gz markdown-c70b2c4154d9b6e46f282c1f212c52e9fbfa5a07.tar.bz2 markdown-c70b2c4154d9b6e46f282c1f212c52e9fbfa5a07.zip |
Tables: Improvements (#530)
Tables now handle escaped pipes when testing, in table borders, and in
the inline content. To achieve properly, a bug had to be fixed related
to appending escaped chars to the Markdown class. Now appended chars
only appear in the current instance. Lastly the first backtick in a
table can be escaped rounding out the last corner case.
Diffstat (limited to 'markdown/__init__.py')
-rw-r--r-- | markdown/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py index 78ea4cb..409f9cf 100644 --- a/markdown/__init__.py +++ b/markdown/__init__.py @@ -75,9 +75,6 @@ class Markdown(object): 'xhtml5': to_xhtml_string, } - ESCAPED_CHARS = ['\\', '`', '*', '_', '{', '}', '[', ']', - '(', ')', '>', '#', '+', '-', '.', '!'] - def __init__(self, *args, **kwargs): """ Creates a new Markdown instance. @@ -147,6 +144,9 @@ class Markdown(object): 'deprecated along with "safe_mode".', DeprecationWarning) + self.ESCAPED_CHARS = ['\\', '`', '*', '_', '{', '}', '[', ']', + '(', ')', '>', '#', '+', '-', '.', '!'] + self.registeredExtensions = [] self.docType = "" self.stripTopLevelTags = True |