Skip to content

Commit c2e20c7

Browse files
daexsgvwilson
authored andcommitted
Added backslashes to descriptions with '[][]'
Changes were made to line 2037, in the case where a node is valType info_array in the JSON with dimension: 2 (eg. groups in _node.py line 137). This fixes the issue where markdown interprets it as a hyperlink. This line adds '[][]' to the description after the description passed in the JSON file as part of the validation process. Now, markdown correctly interprets the brackets as consecutive brackets instead.
1 parent ca37382 commit c2e20c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_plotly_utils/basevalidators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ def description(self):
20342034
""".format(el_desc=el_desc)
20352035

20362036
if self.dimensions in ("1-2", 2):
2037-
item_validator.plotly_name = "{name}[i][j]".format(
2037+
item_validator.plotly_name = "{name}\\[i\\]\\[j\\]".format(
20382038
name=self.plotly_name
20392039
)
20402040

0 commit comments

Comments
 (0)