aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/treeprocessors.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/treeprocessors.py')
-rw-r--r--markdown/treeprocessors.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py
index 6aeb142..50df486 100644
--- a/markdown/treeprocessors.py
+++ b/markdown/treeprocessors.py
@@ -2,6 +2,16 @@ import re
import inlinepatterns
import util
+import odict
+
+
+def build_treeprocessors(md_instance, **kwargs):
+ """ Build the default treeprocessors for Markdown. """
+ treeprocessors = odict.OrderedDict()
+ treeprocessors["inline"] = InlineProcessor(md_instance)
+ treeprocessors["prettify"] = PrettifyTreeprocessor(md_instance)
+ return treeprocessors
+
def isString(s):
""" Check if it's string """