Markdown not working in Script log messages #9622

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

Originally created by @ingvaldlorentzen on GitHub (May 8, 2024).

Originally assigned to: @arthanson on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.0

Python Version

3.11

Steps to Reproduce

  1. Create a script that calls one of the Script log methods with markdown as the message parameter
    E.g:
self.log_success('Success: `def my_code`')
self.log_success('- Point 1 \n - Point 2')
self.log_success('*Italic Text*')
  1. Run script and view the log

Expected Behavior

Markdown rendered in log message on Script result page, like in v3.7.8
image

Observed Behavior

No markdown is rendered, just the raw text
image

Originally created by @ingvaldlorentzen on GitHub (May 8, 2024). Originally assigned to: @arthanson on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.0 ### Python Version 3.11 ### Steps to Reproduce 1. Create a script that calls one of the Script log methods with markdown as the message parameter E.g: ``` self.log_success('Success: `def my_code`') self.log_success('- Point 1 \n - Point 2') self.log_success('*Italic Text*') ``` 2. Run script and view the log ### Expected Behavior Markdown rendered in log message on Script result page, like in v3.7.8 <img width="319" alt="image" src="https://github.com/netbox-community/netbox/assets/8466369/5bd56736-4232-4db9-9182-08ee916715eb"> ### Observed Behavior No markdown is rendered, just the raw text <img width="573" alt="image" src="https://github.com/netbox-community/netbox/assets/8466369/78eb3c36-bc13-4538-b0f6-8cabd831c6ec">
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:19:54 +01:00
adam closed this issue 2025-12-29 21:19:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9622