Skip to content

Commit

Permalink
Fix #46 heading only displays if there is content
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasdairGray committed Oct 17, 2023
1 parent 298fe2d commit c406fc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/docs/templates/slot.md.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Regex pattern: {{ '`' }}{{ element.pattern }}{{ '`' }}
Mixin: {{ element.mixin }}
{% endif -%}

{% if element.comments %}
## Usage Notes

{% set comments = element.comments | join('') %}
Expand All @@ -61,6 +62,7 @@ Mixin: {{ element.mixin }}
{{ line }}
{% endif %}
{% endfor %}
{% endif %}

{% if schemaview.slot_parents(element.name) or schemaview.slot_children(element.name, mixins=False) %}

Expand Down

0 comments on commit c406fc9

Please sign in to comment.