diff options
-rw-r--r-- | markdown/extensions/tables.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/markdown/extensions/tables.py b/markdown/extensions/tables.py index 0e5cd96..8eaa2d3 100644 --- a/markdown/extensions/tables.py +++ b/markdown/extensions/tables.py @@ -7,9 +7,9 @@ Table extension for Python-Markdown import markdown from markdown import etree -class TablePattern(markdown.Pattern) : +class TablePattern(markdown.inlinepatterns.Pattern): def __init__ (self, md): - markdown.Pattern.__init__(self, r'(^|\n)\|([^\n]*)\|') + markdown.inlinepatterns.Pattern.__init__(self, r'(^|\n)\|([^\n]*)\|') self.md = md def handleMatch(self, m): @@ -38,7 +38,7 @@ class TablePattern(markdown.Pattern) : return tr -class TableTreeprocessor(markdown.Treeprocessor): +class TableTreeprocessor(markdown.treeprocessors.Treeprocessor): def _findElement(self, element, name): result = [] |