Skip to content

Commit 86a3497

Browse files
committed
make signature of keyword monospaced in markdown doc
1 parent cd6890b commit 86a3497

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

robotcode/language_server/robotframework/diagnostics/library_doc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,10 @@ def _get_signature(self, header_level: int, add_type: bool = True) -> str:
435435
bs = "\\"
436436
for a in self.args:
437437
result += (
438-
f"\n| {str(a.name)}"
438+
f"\n| `{str(a.name)}`"
439439
f"| {'=' if a.default_value is not None else ''}"
440-
f"| {str(a.default_value) if a.default_value is not None else ''}"
441-
f"| {' or '.join(f'{bs}<{s}>' for s in a.types) if a.types is not None else ''}|"
440+
f"| {f'`{str(a.default_value)}`' if a.default_value is not None else ''}"
441+
f"| {' or '.join(f'`{bs}<{s}>`' for s in a.types) if a.types is not None else ''} |"
442442
)
443443

444444
return result

0 commit comments

Comments
 (0)