summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2017-03-18 10:35:11 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2017-03-18 10:35:11 +0100
commitaffcd2b148e974c02a5f60e14cccd16257a53c0d (patch)
treec2e6c7b85ddccaf3cbe9d6ef34ccfc2d2165ba3e
parent8340f81f6d7c89edf091dbd3ca807edfc8c919ab (diff)
Added markdown_extensions setting.
This allows arbitrary markdown extensions to be specified in the settings.py file.
-rw-r--r--pastepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pastepy.py b/pastepy.py
index e868a04..8d38866 100644
--- a/pastepy.py
+++ b/pastepy.py
@@ -131,7 +131,7 @@ class Paste(object):
def get_formatted(self, syntax, text):
if syntax == 'md-render' and has_markdown:
- text = markdown.markdown(text)
+ text = markdown.markdown(text, extensions = settings.markdown_extensions)
lexername = 'Rendered markdown'
else:
try: