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

Make more kinds of blocks collapse-able in edit mode #384

Open
Kaiserouo opened this issue Sep 1, 2024 · 0 comments
Open

Make more kinds of blocks collapse-able in edit mode #384

Kaiserouo opened this issue Sep 1, 2024 · 0 comments

Comments

@Kaiserouo
Copy link

Is your feature request related to a problem? Please describe.
HackMD already has some support for folding/collapsing blocks in the edit section, specifically headers and style curly brackets. But there seems to be no support for folding blocks of text in:

  • Alert section (:::spoiler)
  • Code blocks (```)
  • Quote section (>)
  • Multi-layer bullet points (-)
  • Math blocks ($$)

They often contain a lot of text, and sometimes (especially :::spoiler and code blocks), their content takes up too much space and would be hard to navigate through all these contents before reaching the later part of the notes.

Describe the solution you'd like
I want the aforementioned blocks to be foldable, like how in the current version of HackMD, you can fold the whole header / paragraph by clicking the arrow on the left, next to the line numbers.

Describe alternatives you've considered
Maybe you can make the part you wanna collapse h6 (######), but that wouldn't make that much sense if there are more support for other kinds of blocks.

Additional context

I use Google Chrome 128.0.6613.86 (64-bit), Windows 11 Pro 23H2 (OS build 22631.4112)

a.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant