Skip to content

Markdown code block mode: Everything in between colons is not rendered #7981

@ypid

Description

@ypid

NetBox version

  • v3.0.11
  • v3.0.10

Python version

3.9

Steps to Reproduce

  1. Create a device type with this comment. I had to use code mode for the :joy: to prevent it from getting rendered. Copy the whole text:

```
00:14.0 USB controller [0c03]: Intel Corporation Lynx Point-LP USB xHCI HC [8086:9c31] (rev 04)
:joy:
```

  1. Save.

(It is reproducible on the demo instance: https://demo.netbox.dev/dcim/device-types/11/)

Expected Behavior

It is rendered as follows (like on GitHub):

00:14.0 USB controller [0c03]: Intel Corporation Lynx Point-LP USB xHCI HC [8086:9c31] (rev 04)
:joy:

Observed Behavior

It is rendered like this:

00:14.0 USB controller [0c03]: 9c31] (rev 04)
:joy:

At first I thought that emoji support might be the issue, but that seems not to be the case. Not sure what else acts on the colons here.

Use case

I like to include the output of various commands like in this case lspci -nn in the device type because that often gives more insights than vendor docs.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions