Improve handling of code blocks in RML

This commit is contained in:
Tom Price
2016-01-07 20:37:03 +00:00
parent e3117cc399
commit 16519b8763

View File

@@ -22,8 +22,8 @@ def markdown_filter(text, format='html'):
# <code> should become <pre>
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'):