diff --git a/lassie/utils.py b/lassie/utils.py index b3d9254e..27724fed 100644 --- a/lassie/utils.py +++ b/lassie/utils.py @@ -130,8 +130,8 @@ def generate_submodel(model: BaseModel) -> list[str]: if field.description is None: continue lines += [ - f" - **`{name}`**\n", - f" {field.description}", + f" **`{name}`**\n", + f" : {field.description}\n", ] def dump_json() -> list[str]: diff --git a/mkdocs.yml b/mkdocs.yml index 4007ba11..002b1113 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -45,6 +45,7 @@ markdown_extensions: - pymdownx.tabbed: alternate_style: true - admonition + - def_list - attr_list extra_javascript: