[GH-ISSUE #905] add support for folding headings and code blocks in the markdown editor #432

Open
opened 2026-03-03 00:21:06 +03:00 by kerem · 2 comments
Owner

Originally created by @ITProKyle on GitHub (Apr 12, 2021).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/905

Current behavior

# Headding 1

## Heading 1.1

```shell
echo "Hello world!"
```

## Heading 1.2

```shell
echo "Example 2"
```

Example text

Given the above note, all lines are shown in the code editor at all times. While fine for small notes, when a note has multiple headings/subheadings, it can be difficult to navigate.

Expected behavior

Adding the ability to fold sections of a note allows for easier navigation as large sections that do not need to be reviewed at the current time can be hidden from view.

# Headding 1

## Heading 1.1
## Heading 1.2

```shell
```

Example text

Ideally, each note would remember where its folded on a given device so that switching between notes would not unfold all folded sections. There should also be a way to fold/unfold all foldable sections of a note at once.

Originally created by @ITProKyle on GitHub (Apr 12, 2021). Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/905 # Current behavior ````markdown # Headding 1 ## Heading 1.1 ```shell echo "Hello world!" ``` ## Heading 1.2 ```shell echo "Example 2" ``` Example text ```` Given the above note, all lines are shown in the code editor at all times. While fine for small notes, when a note has multiple headings/subheadings, it can be difficult to navigate. # Expected behavior Adding the ability to fold sections of a note allows for easier navigation as large sections that do not need to be reviewed at the current time can be hidden from view. ````markdown # Headding 1 ## Heading 1.1 ## Heading 1.2 ```shell ``` Example text ```` Ideally, each note would remember where its folded on a given device so that switching between notes would not unfold all folded sections. There should also be a way to fold/unfold all foldable sections of a note at once.
Author
Owner

@Rokt33r commented on GitHub (Aug 19, 2021):

We might be able to use foldcode addon of CodeMirror. https://codemirror.net/doc/manual.html#addon_foldcode

<!-- gh-comment-id:901805928 --> @Rokt33r commented on GitHub (Aug 19, 2021): We might be able to use `foldcode` addon of CodeMirror. https://codemirror.net/doc/manual.html#addon_foldcode
Author
Owner

@Komediruzecki commented on GitHub (Aug 19, 2021):

@Rokt33r thanks,

I'll add this to local space roadmap and try playing with the addons, if it works well we can implement/port it to cloud space as well!

<!-- gh-comment-id:901999178 --> @Komediruzecki commented on GitHub (Aug 19, 2021): @Rokt33r thanks, I'll add this to local space roadmap and try playing with the addons, if it works well we can implement/port it to cloud space as well!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#432
No description provided.