Markdown doesn't render in custom fields in table view #6800

Closed
opened 2025-12-29 19:45:32 +01:00 by adam · 4 comments
Owner

Originally created by @chcon on GitHub (Aug 11, 2022).

Originally assigned to: @chcon on GitHub.

NetBox version

v3.2.8

Python version

3.8

Steps to Reproduce

  1. Create a custom field of type Text(long) for any content type, e.g. IPAM->IP addresses
  2. Add some Markdown or raw HTML to the custom column for an IP address object in the IPAM
  3. See that the Markdown/raw HTML is not rendering in the IPAM->IP addresses table view

This was working in v3.2.7, so this is probably due to this merge request:
38350a1023

Expected Behavior

Markdown should render in custom columns in the table view for any content type if field type Text(long) was chosen for the custom column.

Observed Behavior

Markdown/raw HTML is not rendering for Text(long) custom columns in the table view of any content type like IPAM->IP addresses.

Originally created by @chcon on GitHub (Aug 11, 2022). Originally assigned to: @chcon on GitHub. ### NetBox version v3.2.8 ### Python version 3.8 ### Steps to Reproduce 1. Create a custom field of type Text(long) for any content type, e.g. IPAM->IP addresses 2. Add some Markdown or raw HTML to the custom column for an IP address object in the IPAM 3. See that the Markdown/raw HTML is not rendering in the IPAM->IP addresses table view This was working in v3.2.7, so this is probably due to this merge request: https://github.com/netbox-community/netbox/commit/38350a102320ea4b1f6bdb81b454c452f9779d2b ### Expected Behavior Markdown should render in custom columns in the table view for any content type if field type Text(long) was chosen for the custom column. ### Observed Behavior Markdown/raw HTML is not rendering for Text(long) custom columns in the table view of any content type like IPAM->IP addresses.
adam added the type: bugstatus: accepted labels 2025-12-29 19:45:32 +01:00
adam closed this issue 2025-12-29 19:45:33 +01:00
Author
Owner

@chcon commented on GitHub (Aug 11, 2022):

Just fixed it in my local environment. If you want to assign me to this one I will create a pull request.

@chcon commented on GitHub (Aug 11, 2022): Just fixed it in my local environment. If you want to assign me to this one I will create a pull request.
Author
Owner

@jeremystretch commented on GitHub (Aug 11, 2022):

Thanks @chcon!

@jeremystretch commented on GitHub (Aug 11, 2022): Thanks @chcon!
Author
Owner

@jeremystretch commented on GitHub (Aug 15, 2022):

This was working in v3.2.7

Was it? I tried using v3.2.7 and it doesn't render markdown in table columns. There's no logic in CustomFieldColumn to render Markdown, so I doubt this has ever worked.

@jeremystretch commented on GitHub (Aug 15, 2022): > This was working in v3.2.7 Was it? I tried using v3.2.7 and it doesn't render markdown in table columns. There's no logic in CustomFieldColumn to render Markdown, so I doubt this has ever worked.
Author
Owner

@chcon commented on GitHub (Aug 15, 2022):

No, you are right. Just checked, I am using plain HTML in some custom columns, and not markdown. But plain HTML definitely worked before 3.2.8 (which ultimately led to the XSS flaw).

@chcon commented on GitHub (Aug 15, 2022): No, you are right. Just checked, I am using plain HTML in some custom columns, and not markdown. But plain HTML definitely worked before 3.2.8 (which ultimately led to the XSS flaw).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6800