Search highlight inside folded callout blocks

Steps to reproduce

  1. Create note with folded callout block.
>[!example] Parent block
> It doesn't have to be callout, simple `> `, will behave identical`
>>[!bug]- Folded block
>>Search this text
>
>> [!note]- Other folded block
>>Lorem ipsum dolor sit amet

2a. ctr + f and search Search this text.

2b. Search "Search this text" using search pane when test file is closed.

Expected result

  • Block containing searched text will be unfolded and only searched text will be highlighted.
  • If block containing searched text is nested inside other folded block - it also should be unfolded.

Actual result

2a)

  • if note is in edit mode it will be fine.
  • if note is in reading mode and callout is expanded it will be fine.
  • if note is in reading mode and callout is folded search UI will not change colour to red, but it will not highlight search result.

2b)

  • if Obsidian is set to open new files in edit mode - it will be fine.
  • if Obsidian is set to open new files in reading mode search will highlight whole block - this is problematic for long notes inside callouts and nested callout blocks(it will highlight whole Parent block not only Folded block).

Environment

  • Operating system: Linux Manjaro
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v0.15.9
    Installer version: v0.15.9
    Operating system: #1 SMP PREEMPT Thu Aug 11 13:14:01 UTC 2022 5.10.136-1-MANJARO
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Current behaviour makes notes with large number of folded callouts block (especially nested ones) unsearchable.

thanks