diff --git a/netbox/templates/circuits/circuit.html b/netbox/templates/circuits/circuit.html index 07d3c360dfd..51f80cca5a9 100644 --- a/netbox/templates/circuits/circuit.html +++ b/netbox/templates/circuits/circuit.html @@ -119,7 +119,7 @@
{% if circuit.comments %} - {{ circuit.comments|gfm }} + {{ circuit.comments|markdown }} {% else %} None {% endif %} diff --git a/netbox/templates/circuits/provider.html b/netbox/templates/circuits/provider.html index 7472366c551..dad07bc7c89 100644 --- a/netbox/templates/circuits/provider.html +++ b/netbox/templates/circuits/provider.html @@ -88,11 +88,11 @@ NOC Contact - {{ provider.noc_contact|gfm|placeholder }} + {{ provider.noc_contact|markdown|placeholder }} Admin Contact - {{ provider.admin_contact|gfm|placeholder }} + {{ provider.admin_contact|markdown|placeholder }} Circuits @@ -110,7 +110,7 @@
{% if provider.comments %} - {{ provider.comments|gfm }} + {{ provider.comments|markdown }} {% else %} None {% endif %} diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 5ab28b40918..9e16f6e6c94 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -325,7 +325,7 @@
{% if device.comments %} - {{ device.comments|gfm }} + {{ device.comments|markdown }} {% else %} None {% endif %} diff --git a/netbox/templates/dcim/devicetype.html b/netbox/templates/dcim/devicetype.html index 292a31c895e..27c61de76ff 100644 --- a/netbox/templates/dcim/devicetype.html +++ b/netbox/templates/dcim/devicetype.html @@ -149,7 +149,7 @@
{% if devicetype.comments %} - {{ devicetype.comments|gfm }} + {{ devicetype.comments|markdown }} {% else %} None {% endif %} diff --git a/netbox/templates/dcim/powerfeed.html b/netbox/templates/dcim/powerfeed.html index 316e0e5f006..350d9bd52be 100644 --- a/netbox/templates/dcim/powerfeed.html +++ b/netbox/templates/dcim/powerfeed.html @@ -158,7 +158,7 @@
{% if powerfeed.comments %} - {{ powerfeed.comments|gfm }} + {{ powerfeed.comments|markdown }} {% else %} None {% endif %} diff --git a/netbox/templates/dcim/rack.html b/netbox/templates/dcim/rack.html index b43a4bfdfbb..a824f44decc 100644 --- a/netbox/templates/dcim/rack.html +++ b/netbox/templates/dcim/rack.html @@ -198,7 +198,7 @@
{% if rack.comments %} - {{ rack.comments|gfm }} + {{ rack.comments|markdown }} {% else %} None {% endif %} diff --git a/netbox/templates/dcim/site.html b/netbox/templates/dcim/site.html index ae452bde9c9..ac7e1d07fbe 100644 --- a/netbox/templates/dcim/site.html +++ b/netbox/templates/dcim/site.html @@ -206,7 +206,7 @@
{% if site.comments %} - {{ site.comments|gfm }} + {{ site.comments|markdown }} {% else %} None {% endif %} diff --git a/netbox/templates/extras/script.html b/netbox/templates/extras/script.html index fc10db80fbf..bf83e7fd9d2 100644 --- a/netbox/templates/extras/script.html +++ b/netbox/templates/extras/script.html @@ -47,7 +47,7 @@ {{ forloop.counter }} {% log_level level %} - {{ message|gfm }} + {{ message|markdown }} {% empty %} diff --git a/netbox/templates/extras/tag.html b/netbox/templates/extras/tag.html index 2857d61884a..f127d365a92 100644 --- a/netbox/templates/extras/tag.html +++ b/netbox/templates/extras/tag.html @@ -90,7 +90,7 @@
{% if tag.comments %} - {{ tag.comments|gfm }} + {{ tag.comments|markdown }} {% else %} None {% endif %} diff --git a/netbox/templates/tenancy/tenant.html b/netbox/templates/tenancy/tenant.html index 9a1ed1be86b..e5cea570521 100644 --- a/netbox/templates/tenancy/tenant.html +++ b/netbox/templates/tenancy/tenant.html @@ -87,7 +87,7 @@
{% if tenant.comments %} - {{ tenant.comments|gfm }} + {{ tenant.comments|markdown }} {% else %} None {% endif %} diff --git a/netbox/templates/virtualization/cluster.html b/netbox/templates/virtualization/cluster.html index 92540fd70ed..0d2b1a96849 100644 --- a/netbox/templates/virtualization/cluster.html +++ b/netbox/templates/virtualization/cluster.html @@ -115,7 +115,7 @@
{% if cluster.comments %} - {{ cluster.comments|gfm }} + {{ cluster.comments|markdown }} {% else %} None {% endif %} diff --git a/netbox/templates/virtualization/virtualmachine.html b/netbox/templates/virtualization/virtualmachine.html index 8f3bb61d461..b5339f50856 100644 --- a/netbox/templates/virtualization/virtualmachine.html +++ b/netbox/templates/virtualization/virtualmachine.html @@ -152,7 +152,7 @@
{% if virtualmachine.comments %} - {{ virtualmachine.comments|gfm }} + {{ virtualmachine.comments|markdown }} {% else %} None {% endif %} diff --git a/netbox/utilities/templatetags/helpers.py b/netbox/utilities/templatetags/helpers.py index 51768b56da1..5086265dbad 100644 --- a/netbox/utilities/templatetags/helpers.py +++ b/netbox/utilities/templatetags/helpers.py @@ -31,9 +31,8 @@ def placeholder(value): return mark_safe(placeholder) -# TODO: Rename this filter as py-gfm is no longer in use @register.filter(is_safe=True) -def gfm(value): +def render_markdown(value): """ Render text as Markdown """