Skip to content

Commit

Permalink
✨ 优化函数定义的显示
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Aug 29, 2024
1 parent e027e28 commit 3ea0374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litedoc/syntax/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ def markdown(self, lang: str, indent: int = 0) -> str:
md += PREFIX + f"### `@{decorator}`\n"

if self.is_async:
md += PREFIX + f"### *async {func_type}* "
md += PREFIX + f"### ***async {func_type}*** "
else:
md += PREFIX + f"### *{func_type}* "
md += PREFIX + f"### ***{func_type}*** "

# code start
# 配对位置参数和位置参数默认值,无默认值用TypeHint.NO_DEFAULT
Expand Down

0 comments on commit 3ea0374

Please sign in to comment.