Skip to content

Support for <details> and <summary> #1287

Open

Description

@BurdetteLamar

Over at ruby/ruby, we sometimes have a situation in documentation where certain details may or may not be important to a few readers, but will be irrelevant to many.

E.g., @peterzhu2118 and I are looking at "Hash Equality and Inclusion", whose details may be important to a few but will be irrelevant to many. One of us thinks that info should be at a link; the other thinks it should be included inline.

There may be many other such.

Casting that info as <details><summmary>...</summary>...</details> would be a perfect solution. See <summary>.
Failing that, a weaker alternative would be support for <small>; see <small>.

In either case, support for embedded bold would be important (to give structure without adding headings), along with italic and monofont.

Activity

  1. olleolleolle commented on Feb 6, 2025

    @olleolleolle
    Contributor

    (I edited the links to descriptions of summary and small elements so that they render clearer here.)

    MDN pages about same elements:

  2. BurdetteLamar commented on Nov 25, 2026

    @BurdetteLamar
    MemberAuthor

    This lack is particularly annoying: RDoc generates these elements, but does not allow them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions