vscode
vscode copied to clipboard
Support HTML code folding inside markdown
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.
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 -->