Code Folding inside code mirrors rendered code blocks

Code Block Collapse Functionality in Logseq

To further enhance the usability and functionality of Logseq as a platform for annotating and referencing code blocks, the implementation of toggles to collapse sections of code blocks in the rendered code blocks within Logseq.

To implement this feature, adding a toggle button or icon next to each code block section, allowing to collapsing or expanding individual sections as needed.