mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fix #8097: Re-fix markdown table rendering
This commit is contained in:
@@ -59,6 +59,10 @@ def render_markdown(value):
|
||||
# Render Markdown
|
||||
html = markdown(value, extensions=['fenced_code', 'tables', StrikethroughExtension()])
|
||||
|
||||
# If the string is not empty wrap it in rendered-markdown to style tables
|
||||
if html:
|
||||
html = f'<div class="rendered-markdown">{html}</div>'
|
||||
|
||||
return mark_safe(html)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user