1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes : Fix Markdown support for tables

This commit is contained in:
Jeremy Stretch
2020-03-11 09:52:02 -04:00
parent a504f5f309
commit 79aba5edf2
2 changed files with 3 additions and 2 deletions
docs/release-notes
netbox/utilities/templatetags

@ -5,6 +5,7 @@
### Bug Fixes
* [#4340](https://github.com/netbox-community/netbox/issues/4340) - Enforce unique constraints for device and virtual machine names in the API
* [#4343](https://github.com/netbox-community/netbox/issues/4343) - Fix Markdown support for tables
## v2.7.10 (2020-03-10)

@ -40,7 +40,7 @@ def render_markdown(value):
value = strip_tags(value)
# Render Markdown
html = markdown(value, extensions=['fenced_code'])
html = markdown(value, extensions=['fenced_code', 'tables'])
return mark_safe(html)
@ -196,7 +196,7 @@ def get_docs(model):
return "Unable to load documentation, error reading file: {}".format(path)
# Render Markdown with the admonition extension
content = markdown(content, extensions=['admonition', 'fenced_code'])
content = markdown(content, extensions=['admonition', 'fenced_code', 'tables'])
return mark_safe(content)