Skip to content

Commit df76a52

Browse files
committed
Add support for bullet lists
1 parent 148601e commit df76a52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lazydocs/generation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ def _doc2md(obj: Any) -> str:
374374
out.append(line.replace("::", ":\n```"))
375375
elif quote_block:
376376
out.append(line.strip())
377+
elif line.strip().startswith("-") and not arg_list:
378+
# Allow bullet lists
379+
out.append("\n" + (" " * indent) + line)
377380
elif indent > blockindent:
378381
if arg_list and not literal_block and _RE_TYPED_ARGSTART.match(line):
379382
# start of new argument

0 commit comments

Comments
 (0)