From affcd2b148e974c02a5f60e14cccd16257a53c0d Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 18 Mar 2017 10:35:11 +0100 Subject: Added markdown_extensions setting. This allows arbitrary markdown extensions to be specified in the settings.py file. --- pastepy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3