- capture
  h6 =(title || (attr :name).capitalize)
  = html_tag_if !blocks?, :p
    =content
- if admonition_aside?
  aside.admonitionblock id=id class=[(attr :name), role] role=admonition_aria
    - yield_capture
- else
  section.admonitionblock id=id class=[(attr :name), role] role=admonition_aria
    - yield_capture

- capture
  h6 =(title || caption)
  = html_tag_if !blocks?, :p
    =content
- if admonition_aside?
  aside.admonitionblock id=id class=[(attr :name), role] role=admonition_aria
    - yield_capture
- else
  section.admonitionblock id=id class=[(attr :name), role] role=admonition_aria
    - yield_capture

Use "caption" instead of "name" as fallback for admonition title
Use "caption" instead of "name" as fallback for admonition title

jirutka/asciidoctor-html5,jirutka/asciidoctor-html5