[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the Typer documentation, with the integrated search.
[X] I already searched in Google "How to X in Typer" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to Typer but to Click.
Commit to Help
[X] I commit to help with one of those options 👆
Example Code
import typer
app = typer.Typer(rich_markup_mode="markdown")
@app.command()
def bullet_list(item: str):
"""bullet list
- 1
- 2
- 3
"""
print(f"Deleting item: {item}")
@app.command()
def nested_bullet_list(item: str):
"""nested bullet list
- 1
- 2
- a
- b
- 3
"""
print(f"Creating item: {item}")
if __name__ == "__main__":
app()
Description
Bullet lists are rendered incorrectly when rich_markup_mode is set to "markdown". Instead of rendering a list, all list items appear on the same line. This does not happen when the mode is set to "rich".
First Check
Commit to Help
Example Code
Description
Bullet lists are rendered incorrectly when
rich_markup_mode
is set to "markdown". Instead of rendering a list, all list items appear on the same line. This does not happen when the mode is set to "rich".Operating System
macOS
Operating System Details
No response
Typer Version
0.6.1
Python Version
Python 3.7.12
Additional Context
No response