mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 16:06:43 -06:00
12685 use markdown for custom fields added to form
This commit is contained in:
parent
252bf03525
commit
156680aea0
@ -1,4 +1,5 @@
|
||||
import decimal
|
||||
import markdown
|
||||
import re
|
||||
from datetime import datetime, date
|
||||
|
||||
@ -498,7 +499,7 @@ class CustomField(CloningMixin, ExportTemplatesMixin, ChangeLoggedModel):
|
||||
field.model = self
|
||||
field.label = str(self)
|
||||
if self.description:
|
||||
field.help_text = escape(self.description)
|
||||
field.help_text = markdown.markdown(escape(self.description))
|
||||
|
||||
# Annotate read-only fields
|
||||
if enforce_visibility and self.ui_visibility == CustomFieldVisibilityChoices.VISIBILITY_READ_ONLY:
|
||||
|
Loading…
Reference in New Issue
Block a user