Skip to content

Unable to Align Markdown Tables Values #13051

@adparis99

Description

@adparis99

NetBox version

3.5.1 (also tested on 3.5.4)

Python version

3.10

Steps to Reproduce

  1. Edit any object that supports the Comments field
  2. Add a table with colons on one or both sides of the hyphens in header row, thus indicating desired alignment, such as:
| Left Alignment| Center Alignment | Right Aligment     |
| :---        |    :----:   |          ---: |
| Words     | Title       | Here's this   |
| Values   | Text        | And more      |
  1. Either preview the table on the Edit page, or save the object and view the Comments field

Expected Behavior

I expected the table to be aligned per the documentation on markdown support, which would involve it appearing like below:

Left Alignment Center Alignment Right Aligment
Words Title Here's this
Values Text And more

Observed Behavior

The colons seem to be totally ignored, as shown in the screenshots below (using the same markdown syntax as above):

image

image

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: 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