[PR #13828] [MERGED] 12685 use markdown for custom fields added to form #14258

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13828
Author: @arthanson
Created: 9/19/2023
Status: Merged
Merged: 9/20/2023
Merged by: @jeremystretch

Base: developHead: 12685-custom-field-markdown


📝 Commits (3)

  • 156680a 12685 use markdown for custom fields added to form
  • 4b352c9 13809 change markdown to use utilities
  • 0f63f4a Add help_text for CustomField description indicating Markdown support

📊 Changes

2 files changed (+4 additions, -2 deletions)

View changed files

📝 netbox/extras/forms/model_forms.py (+2 -1)
📝 netbox/extras/models/customfields.py (+2 -1)

📄 Description

Fixes: #12685

Renders custom field description (for help text) using markdown for forms. Did the escape first so it catches html and just process markdown afterwards.


🔄 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/13828 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 9/19/2023 **Status:** ✅ Merged **Merged:** 9/20/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `12685-custom-field-markdown` --- ### 📝 Commits (3) - [`156680a`](https://github.com/netbox-community/netbox/commit/156680aea03e7ec24cbbb6756cb1542184a1fc91) 12685 use markdown for custom fields added to form - [`4b352c9`](https://github.com/netbox-community/netbox/commit/4b352c941f300a4a4eb72e81c934842d6e777008) 13809 change markdown to use utilities - [`0f63f4a`](https://github.com/netbox-community/netbox/commit/0f63f4ad9a5b07c2b5a32c0fd8ca1ca3a2e5dcc7) Add help_text for CustomField description indicating Markdown support ### 📊 Changes **2 files changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/forms/model_forms.py` (+2 -1) 📝 `netbox/extras/models/customfields.py` (+2 -1) </details> ### 📄 Description ### Fixes: #12685 Renders custom field description (for help text) using markdown for forms. Did the escape first so it catches html and just process markdown afterwards. --- <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:23:27 +01:00
adam closed this issue 2025-12-29 23:23: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#14258