From 16519b87635b8fb2f14e608145025e80b6dc2a40 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Thu, 7 Jan 2016 20:37:03 +0000 Subject: [PATCH] Improve handling of code blocks in RML --- RIGS/templatetags/markdown_tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RIGS/templatetags/markdown_tags.py b/RIGS/templatetags/markdown_tags.py index 2c44595c..ce8826d6 100644 --- a/RIGS/templatetags/markdown_tags.py +++ b/RIGS/templatetags/markdown_tags.py @@ -22,8 +22,8 @@ def markdown_filter(text, format='html'): # should become
         for c in soup('code'):
-            c.name = 'pre'
-            c.parent.replaceWithChildren()
+            c.name = 'font'
+            c['face'] = "Courier"
 
         # blockquotes don't exist but we can still do something to show
         for bq in soup('blockquote'):