From 478f63d2a51f4bd1712439e610f241bf501d0576 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 20 Nov 2008 19:58:37 -0500 Subject: Updated tables extension for refactor. --- markdown/extensions/tables.py | 6 +++--- 1 file 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 = [] -- cgit v1.2.3