Skip to content

Commit f6d962d

Browse files
committed
fix: Remove extra new lines in attribute headings, and don't render attribute values in headings
Issue-11: #11
1 parent 9960f54 commit f6d962d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/griffe2md/templates/attribute.md.jinja

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
{%- if config.separate_signature -%}
1616
{{ attribute_name }}
1717
{%- else -%}
18-
<code>
19-
{{ attribute_name }}
20-
{%- if attribute.annotation -%}: {{ attribute.annotation }}{%- endif -%}
21-
{%- if attribute.value %} = {{ attribute.value }}{%- endif -%}
22-
</code>
18+
`{{- attribute_name }}{% if attribute.annotation -%}: {{ attribute.annotation }}{%- endif -%}`
2319
{%- endif -%}
2420
{%- endfilter -%}
2521

0 commit comments

Comments
 (0)