vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Support HTML code folding inside markdown

Open o-l-a-v opened this issue 7 months ago • 0 comments

Feature request

Would be great if VSCode supported HTML code folding inside markdown.

Example code:

<details>
<summary>Test</details>

```pwsh
Write-Output -InputObject 'Test'
```

</details>

Here I'd like the <details> tag to be foldable. But VSCode only folds the next line into it.

Image

Workaround

A workaround is to use <!-- #region <name of region> like so:

<!-- #region Region 1 -->

<details>
<summary>Test</details>

```pwsh
Write-Output -InputObject 'Test'
```

</details>

<!-- #endregion -->

Image

o-l-a-v avatar May 23 '25 10:05 o-l-a-v