mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Improve handling of code blocks in RML
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user