Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to collapse/expand text (e.g. in issues) #33171

Closed
geerligs opened this issue Jan 9, 2025 · 2 comments
Closed

Add feature to collapse/expand text (e.g. in issues) #33171

geerligs opened this issue Jan 9, 2025 · 2 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@geerligs
Copy link

geerligs commented Jan 9, 2025

Feature Description

In Github it is possible to structure the text in issues using collapsing/expanding of sections.

The Github feature is using <details> and <summary> tags

Example (same as in screenshot):

Tips for collapsed sections

You can add a header

You can add text within a collapsed section.

You can add an image or a code block, too.

   puts "Hello World"

More info on https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-collapsed-sections

Screenshots

image

@geerligs geerligs added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jan 9, 2025
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Jan 9, 2025

It is already supported in Gitea?


<details>

<summary> this is a summary </summary>

this is the detail

</details>

image

image

@wxiaoguang wxiaoguang added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail and removed type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Jan 9, 2025
@geerligs
Copy link
Author

Hello wxiaoguang,

you are right, it is already available!

Thanks for the feedback.

--Han

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

No branches or pull requests

2 participants