Skip to content

Collapsible sections for code #2735

Description

@GMbrianlaw

Checklist

Is your feature request related to a problem? Please describe

I often use Chirpy's built-in syntax for code highlighting, but often long blocks of code are annoying to the reader as they have to scroll down a lot to skip it.

Describe the solution you'd like

Two ideas are either to include a collapsible element which works in general, or to make code blocks collapsed by default and expandable.

Describe alternatives you've considered

Using HTML's <detail> tag, but it is difficult to get Chirpy to recognize code inside HTML.

Additional context

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions