[PR #9981] [MERGED] re-enable markdown in custom columns #13542

Closed
opened 2025-12-29 23:19:28 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9981
Author: @chcon
Created: 8/11/2022
Status: Merged
Merged: 8/16/2022
Merged by: @jeremystretch

Base: developHead: develop


📝 Commits (6)

📊 Changes

1 file changed (+10 additions, -0 deletions)

View changed files

📝 netbox/netbox/tables/columns.py (+10 -0)

📄 Description

Fixes: #9979

Introduced a new column class CustomFieldMarkdownColumn that combines the default markdown rendering behavior of the MarkdownColumn with the custom column specific constructor parameters of the CustomFieldColumn.
That way markdown in custom columns should be both XSS safe and functional.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/9981 **Author:** [@chcon](https://github.com/chcon) **Created:** 8/11/2022 **Status:** ✅ Merged **Merged:** 8/16/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (6) - [`9a80a49`](https://github.com/netbox-community/netbox/commit/9a80a491c90bcdc3341a7c75f2f8bae93e32fba9) re-enable markdown in custom columns - [`f942216`](https://github.com/netbox-community/netbox/commit/f942216f3f4931c0d1e835948478e976172713ab) re-enable markup in longtext custom columns - [`6f09d94`](https://github.com/netbox-community/netbox/commit/6f09d94e2a99330ecd09e7d3ee0600fba8386716) remove commented line - [`ac540b6`](https://github.com/netbox-community/netbox/commit/ac540b6183bd5bf8db57b1941de24aafc7b04f3c) remove import - [`36491b1`](https://github.com/netbox-community/netbox/commit/36491b13d86b26a0e75d84b8b5db64403f3fbe89) remove class definition - [`15f4b1f`](https://github.com/netbox-community/netbox/commit/15f4b1fd5daa5c8dd4338352d37049b47e4bf7de) add newline ### 📊 Changes **1 file changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/tables/columns.py` (+10 -0) </details> ### 📄 Description ### Fixes: #9979 Introduced a new column class _CustomFieldMarkdownColumn_ that combines the default markdown rendering behavior of the _MarkdownColumn_ with the custom column specific constructor parameters of the _CustomFieldColumn_. That way markdown in custom columns should be both XSS safe and functional. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:19:28 +01:00
adam closed this issue 2025-12-29 23:19:28 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13542