summaryrefslogtreecommitdiff
path: root/markdown/postprocessors.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/postprocessors.py')
-rw-r--r--markdown/postprocessors.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/markdown/postprocessors.py b/markdown/postprocessors.py
index f4fb924..498f7e8 100644
--- a/markdown/postprocessors.py
+++ b/markdown/postprocessors.py
@@ -37,7 +37,6 @@ def build_postprocessors(md, **kwargs):
postprocessors = util.Registry()
postprocessors.register(RawHtmlPostprocessor(md), 'raw_html', 30)
postprocessors.register(AndSubstitutePostprocessor(), 'amp_substitute', 20)
- postprocessors.register(UnescapePostprocessor(), 'unescape', 10)
return postprocessors
@@ -122,6 +121,10 @@ class AndSubstitutePostprocessor(Postprocessor):
return text
+@util.deprecated(
+ "This class will be removed in the future; "
+ "use 'treeprocessors.UnescapeTreeprocessor' instead."
+)
class UnescapePostprocessor(Postprocessor):
""" Restore escaped chars """