aboutsummaryrefslogtreecommitdiffstats
path: root/markdown_extensions/tables.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown_extensions/tables.py')
-rw-r--r--markdown_extensions/tables.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown_extensions/tables.py b/markdown_extensions/tables.py
index c485f55..5339ae1 100644
--- a/markdown_extensions/tables.py
+++ b/markdown_extensions/tables.py
@@ -38,7 +38,7 @@ class TablePattern(markdown.Pattern) :
return tr
-class TablePostprocessor:
+class TableTreeprocessor(markdown.Treeprocessor):
def _findElement(self, element, name):
result = []
@@ -62,7 +62,7 @@ class TablePostprocessor:
class TableExtension(markdown.Extension):
def extendMarkdown(self, md, md_globals):
md.inlinePatterns.add('table', TablePattern(md), "<backtick")
- md.postprocessors['table'] = TablePostprocessor()
+ md.treeprocessors['table'] = TableTreeprocessor()
def makeExtension(configs):